If no courses exist, then present a helpful button to make one.

This commit is contained in:
moodler
2005-06-09 12:53:56 +00:00
parent 377c6fa437
commit 014d8a9ab8
+7
View File
@@ -1332,6 +1332,13 @@ function print_courses($category, $width="100%") {
}
} else {
print_heading(get_string("nocoursesyet"));
if (iscreator()) {
$options = array();
$options['category'] = $category->id;
echo '<div class="addcoursebutton" align="center">';
print_single_button($CFG->wwwroot.'/course/edit.php', $options, get_string("addnewcourse"));
echo '</div>';
}
}
}