From 0137811f2b71c113ffe93c15277e6a05dafd9147 Mon Sep 17 00:00:00 2001 From: Mikhail Golenkov Date: Tue, 4 Feb 2020 16:51:41 +1100 Subject: [PATCH] Hide Create outage button if there is an ongoing outage #172. --- views/manage.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/views/manage.php b/views/manage.php index 22925df..0ff9f0d 100644 --- a/views/manage.php +++ b/views/manage.php @@ -26,6 +26,7 @@ use auth_outage\output\manage\history_table; use auth_outage\output\manage\planned_table; use auth_outage\output\renderer; +use auth_outage\dml\outagedb; defined('MOODLE_INTERNAL') || die(); @@ -47,9 +48,12 @@ echo $viewbag['warning']; $table->finish_output(); ?> - + + + +