Now, when listing activities, entries are dimmed if they are hidden
(teacher view). See bug 802.
This commit is contained in:
@@ -58,7 +58,13 @@
|
||||
}
|
||||
|
||||
foreach ($attendances as $attendance) {
|
||||
$link = "<A HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
|
||||
if (!$attendance->visible) {
|
||||
//Show dimmed if the mod is hidden
|
||||
$link = "<A class=\"dimmed\" HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
|
||||
} else {
|
||||
//Show normal if the mod is visible
|
||||
$link = "<A HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
|
||||
}
|
||||
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$table->data[] = array ($attendance->section, $link);
|
||||
|
||||
+7
-2
@@ -54,8 +54,13 @@
|
||||
}
|
||||
|
||||
foreach ($chats as $chat) {
|
||||
$link = "<a href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
|
||||
|
||||
if (!$chat->visible) {
|
||||
//Show dimmed if the mod is hidden
|
||||
$link = "<a class=\"dimmed\" href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
|
||||
} else {
|
||||
//Show normal if the mod is visible
|
||||
$link = "<a href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
|
||||
}
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
if ($chat->section) {
|
||||
$table->data[] = array ($chat->section, $link);
|
||||
|
||||
@@ -57,7 +57,13 @@
|
||||
}
|
||||
|
||||
foreach ($glossarys as $glossary) {
|
||||
$link = "<A HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
|
||||
if (!$glossary->visible) {
|
||||
//Show dimmed if the mod is hidden
|
||||
$link = "<A class=\"dimmed\" HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
|
||||
} else {
|
||||
//Show normal if the mod is visible
|
||||
$link = "<A HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
|
||||
}
|
||||
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$table->data[] = array ($glossary->section, $link);
|
||||
|
||||
+16
-3
@@ -54,8 +54,15 @@
|
||||
$submitted = "<FONT COLOR=red>".userdate($submission->timecreated)."</FONT>";
|
||||
}
|
||||
$due = userdate($workshop->deadline);
|
||||
$link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><BR>".
|
||||
"($submission->title)";
|
||||
if (!$workshop->visible) {
|
||||
//Show dimmed if the mod is hidden
|
||||
$link = "<A class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><BR>".
|
||||
"($submission->title)";
|
||||
} else {
|
||||
//Show normal if the mod is visible
|
||||
$link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><BR>".
|
||||
"($submission->title)";
|
||||
}
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$table->data[] = array ($workshop->section, $link, $due, $submitted);
|
||||
}
|
||||
@@ -67,7 +74,13 @@
|
||||
else {
|
||||
$submitted = get_string("no");
|
||||
$due = userdate($workshop->deadline);
|
||||
$link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
|
||||
if (!$workshop->visible) {
|
||||
//Show dimmed if the mod is hidden
|
||||
$link = "<A class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
|
||||
} else {
|
||||
//Show normal if the mod is visible
|
||||
$link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
|
||||
}
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$table->data[] = array ($workshop->section, $link, $due, $submitted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user