]> git.mjollnir.org Git - moodle.git/commitdiff
Changed to show the hidden quizzes dimmed (bug #364)
authorstronk7 <stronk7>
Thu, 24 Apr 2003 18:19:23 +0000 (18:19 +0000)
committerstronk7 <stronk7>
Thu, 24 Apr 2003 18:19:23 +0000 (18:19 +0000)
mod/quiz/index.php

index 3cd40202315e67d8d15ace02ffdd414dbebd12b0..6d691cfb4e5f08a532ac2d227f2a00f2427dd0a3 100644 (file)
     }
 
     foreach ($quizzes as $quiz) {
-        $link = "<A HREF=\"view.php?id=$quiz->coursemodule\">$quiz->name</A>";
+        if (!$quiz->visible) { 
+            //Show dimmed if the mod is hidden
+            $link = "<A class=\"dimmed\" HREF=\"view.php?id=$quiz->coursemodule\">$quiz->name</A>";
+        } else {
+            //Show normal if the mod is visible
+            $link = "<A HREF=\"view.php?id=$quiz->coursemodule\">$quiz->name</A>";
+        }
 
         $bestgrade = quiz_get_best_grade($quiz->id, $USER->id);