]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed addcourse button on home page
authormoodler <moodler>
Tue, 9 Jan 2007 06:07:35 +0000 (06:07 +0000)
committermoodler <moodler>
Tue, 9 Jan 2007 06:07:35 +0000 (06:07 +0000)
course/lib.php
theme/standard/styles_layout.css

index c8652312b6e9400ccc469e05846bc9dd5c609393..fa3dd4d4159aee90c17a47a3d25db2f23a3ba729 100644 (file)
@@ -1762,7 +1762,7 @@ function print_courses($category, $width="100%", $hidesitecourse = false) {
         if (has_capability('moodle/course:create', $context)) {
             $options = array();
             $options['category'] = $category->id;
-            echo '<div class="addcoursebutton" align="center">';
+            echo '<div class="addcoursebutton">';
             print_single_button($CFG->wwwroot.'/course/edit.php', $options, get_string("addnewcourse"));
             echo '</div>';
         }
index a7164f7f7212343fbddc5ded7b61e9e5f876bec5..50da6812fff06cc7434363a5282557983e9bf58f 100644 (file)
@@ -640,6 +640,11 @@ body#admin-roles-manage table.generalbox {
   margin: auto;
 }
 
+body#admin-index .copyrightnotice {
+  margin: auto;
+  text-align: center;
+}
+
 #admin-report-simpletest-index .exception pre {
   padding: 8px;
 }
@@ -1436,6 +1441,10 @@ body#course-view .headingblock {
   padding-bottom:10px;
 }
 
+.addcoursebutton {
+  text-align:center;
+}
+
 .coursebox .cost {
   padding-top: 20px;
 }