mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Changed to show the hidden surveys dimmed (bug #364)
This commit is contained in:
parent
e6c136e1bf
commit
c37053ea2f
1 changed files with 12 additions and 6 deletions
|
@ -54,13 +54,19 @@
|
||||||
} else {
|
} else {
|
||||||
$section = "";
|
$section = "";
|
||||||
}
|
}
|
||||||
if ($course->format == "weeks" or $course->format == "topics") {
|
//Calculate the href
|
||||||
$table->data[] = array ($section,
|
if (!$survey->visible) {
|
||||||
"<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>",
|
//Show dimmed if the mod is hidden
|
||||||
"<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
|
$tt_href = "<A class=\"dimmed\" HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>";
|
||||||
} else {
|
} else {
|
||||||
$table->data[] = array ("<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>",
|
//Show normal if the mod is visible
|
||||||
"<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
|
$tt_href = "<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($course->format == "weeks" or $course->format == "topics") {
|
||||||
|
$table->data[] = array ($section, $tt_href, "<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
|
||||||
|
} else {
|
||||||
|
$table->data[] = array ($tt_href, "<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue