MDL-37968 course_overview: add dim class to hidden courses for teachers.

This commit is contained in:
Dan Marsden
2013-06-07 14:38:13 +12:00
parent b3be471f52
commit d32f3eeba8
+3
View File
@@ -103,6 +103,9 @@ class block_course_overview_renderer extends plugin_renderer_base {
// No need to pass title through s() here as it will be done automatically by html_writer.
$attributes = array('title' => $course->fullname);
if (empty($course->visible)) {
$attributes['class'] = 'dimmed';
}
if ($course->id > 0) {
$courseurl = new moodle_url('/course/view.php', array('id' => $course->id));
$coursefullname = format_string($course->fullname, true, $course->id);