mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
Merge branch 'MDL-43566' of https://github.com/willylee/moodle
This commit is contained in:
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user