]> git.mjollnir.org Git - moodle.git/commitdiff
Changed to show the hidden resources dimmed (bug #364)
authorstronk7 <stronk7>
Thu, 24 Apr 2003 15:25:21 +0000 (15:25 +0000)
committerstronk7 <stronk7>
Thu, 24 Apr 2003 15:25:21 +0000 (15:25 +0000)
mod/resource/index.php

index 1fc59cc6a57932974f9d58ff3184f999b0882e4c..f235040fd6fc61fe297c0309f62f80d250568018 100644 (file)
         } else {
             $tt = "<FONT SIZE=1>".userdate($resource->timemodified);
         }
-        $table->data[] = array ($tt, "<A HREF=\"view.php?id=$resource->coursemodule\">$resource->name</A>",
-                                text_to_html($resource->summary) );
+        if (!$resource->visible) {
+           //Show dimmed if the mod is hidden
+           $table->data[] = array ($tt, "<A class=\"dimmed\" HREF=\"view.php?id=$resource->coursemodule\">$resource->name</A>",
+                                   text_to_html($resource->summary) );
+        } else {
+           //Show normal if the mod is visible
+           $table->data[] = array ($tt, "<A HREF=\"view.php?id=$resource->coursemodule\">$resource->name</A>",
+                                   text_to_html($resource->summary) );
+        }
     }
 
     echo "<BR>";