From: moodler Date: Tue, 9 Jan 2007 06:07:35 +0000 (+0000) Subject: Fixed addcourse button on home page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6b7425d2cb35e6dcdc460dc1cab1137195757ef9;p=moodle.git Fixed addcourse button on home page --- diff --git a/course/lib.php b/course/lib.php index c8652312b6..fa3dd4d415 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 '
'; + echo '
'; print_single_button($CFG->wwwroot.'/course/edit.php', $options, get_string("addnewcourse")); echo '
'; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index a7164f7f72..50da6812ff 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -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; }