]> git.mjollnir.org Git - moodle.git/commitdiff
Slightly prettier display
authormoodler <moodler>
Wed, 30 Jul 2003 13:57:39 +0000 (13:57 +0000)
committermoodler <moodler>
Wed, 30 Jul 2003 13:57:39 +0000 (13:57 +0000)
course/lib.php

index b063bb30c1274e9e7ebd89d004e649157ba41496..4075ba2957bbaa515913798e4d740af480085401 100644 (file)
@@ -938,13 +938,14 @@ function print_category_box($category, $depth) {
     echo print_spacer(1, $size);
     echo "<td width=\"100%\">";
     echo "<font size=+1><a $catlinkcss href=\"$CFG->wwwroot/course/index.php?category=$category->id\">$category->name</a></font>";
+    echo "<br />";
     //echo "<font size=+1>$category->name</font>";
     if ($CFG->frontpage == FRONTPAGECOURSELIST) {
         if ($courses = get_courses($category)) {
-            echo "<ul>";
             foreach ($courses as $course) {
                 $linkcss = $course->visible ? "" : " class=\"dimmed\" ";
-                echo "<li><a $linkcss href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
+                echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
+                echo "<a $linkcss href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
                 echo "&nbsp;&nbsp;";
                 unset($courses[$key]);
                 if ($course->guest ) {
@@ -955,8 +956,8 @@ function print_category_box($category, $depth) {
                     echo "<a title=\"$strrequireskey\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
                     echo "<img alt=\"\" height=16 width=16 border=0 src=\"$pixpath/i/key.gif\"></a>";
                 }
+                echo "<br />";
             }
-            echo "</ul>";
         }
     }
     echo "</td>";