]> git.mjollnir.org Git - moodle.git/commitdiff
Changed to show the hidden assignments dimmed (bug #364)
authorstronk7 <stronk7>
Thu, 24 Apr 2003 16:38:49 +0000 (16:38 +0000)
committerstronk7 <stronk7>
Thu, 24 Apr 2003 16:38:49 +0000 (16:38 +0000)
mod/assignment/index.php

index 167082dae40fea14d20df16513ddf4e5beed7180..94b8e986818fe0feed664c13a22597a6cc07fce6 100644 (file)
             $submitted = get_string("no");
         }
         $due = userdate($assignment->timedue);
-        $link = "<A HREF=\"view.php?id=$assignment->coursemodule\">$assignment->name</A>";
+        if (!$assignment->visible) {
+            //Show dimmed if the mod is hidden
+            $link = "<A class=\"dimmed\" HREF=\"view.php?id=$assignment->coursemodule\">$assignment->name</A>";
+        } else {
+            //Show normal if the mod is visible
+            $link = "<A HREF=\"view.php?id=$assignment->coursemodule\">$assignment->name</A>";
+        }
         if ($assignment->section) {
             $section = "$assignment->section";
         } else {