Skip to content
Browse files

Dim link if not visible in my course view for assignment module

  • Loading branch information...
1 parent 84fa8f5 commit 101e9cad4843d8cdc49f14dae6b69889298d37ac patrickslee committed Mar 14, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
2 mod/assignment/lib.php
@@ -2317,7 +2317,7 @@ function assignment_print_overview($courses, &$htmlarray) {
$assignmentclass = "assignment_$assignment->assignmenttype";
$instance = new $assignmentclass($assignment->coursemodule, $assignment);
- $str = '<a title="'.$instance->strassignment.'" href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$instance->cm->id.'">'
+ $str = '<a '.($assignment->visible?'':' class="dimmed"').'title="'.$instance->strassignment.'" href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$instance->cm->id.'">'
.$instance->strassignment.': '.$instance->assignment->name.'</a><br />';
$str .= $strduedate.': '.userdate($instance->assignment->timedue).'<br />';
if (isteacher($instance->course->id)) {

0 comments on commit 101e9ca

Please sign in to comment.
Something went wrong with that request. Please try again.