If no courses exist, then present a helpful button to make one.
This commit is contained in:
@@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user