Issue #22 - Refactored maintenance_static_page and allowed generate preview page (different location than main template).

This commit is contained in:
Daniel Thee Roperto
2016-11-09 13:26:55 +11:00
parent f086fc1af7
commit cd3433655e
5 changed files with 130 additions and 72 deletions

View File

@@ -57,6 +57,10 @@ if ($viewbag['admin']) {
),
get_string('infohidewarning', 'auth_outage')
);
$adminlinks[] = html_writer::link(
new moodle_url('/auth/outage/maintenance.php', ['debug' => '', 'id' => $viewbag['outage']->id]),
get_string('infostaticpage', 'auth_outage')
);
$admineditlink = html_writer::link(
new moodle_url('/auth/outage/edit.php', ['edit' => $viewbag['outage']->id]),