1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00
This commit is contained in:
Sam Hemelryk 2014-09-29 09:51:35 +13:00
commit 29b72af1b2

@ -1216,6 +1216,15 @@ class core_course_management_renderer extends plugin_renderer_base {
array('class' => 'action-edit')
);
}
// Delete.
if ($course->can_delete()) {
$actions[] = $this->output->action_icon(
new moodle_url('/course/delete.php', array('id' => $course->id)),
new pix_icon('t/delete', get_string('delete')),
null,
array('class' => 'action-delete')
);
}
// Show/Hide.
if ($course->can_change_visibility()) {
$actions[] = $this->output->action_icon(