From 57b5a229c004a9dbc53cc311b3857daeb5d9d86a Mon Sep 17 00:00:00 2001 From: ScottVerbeek Date: Thu, 4 Jan 2024 15:32:56 +1000 Subject: [PATCH 1/2] issue #328: remove unused fontawesome icon map --- lib.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib.php b/lib.php index d2d2e09..cc95564 100644 --- a/lib.php +++ b/lib.php @@ -65,17 +65,6 @@ function auth_outage_get_climaintenance_resource_file($file) { return ($realpath == false) ? null : $realpath; } -/** - * Display required icon for the calendar events. - * - * @return array - */ -function auth_outage_get_fontawesome_icon_map() { - return [ - 'core:i/auth_outageevent' => 'fa-power-off', - ]; -} - /** * Inject the warning bar into the page if there is currently an outage. * From 94afadac9d868d0074ff335df45bafd74a1512b8 Mon Sep 17 00:00:00 2001 From: ScottVerbeek Date: Fri, 5 Jan 2024 13:10:45 +1000 Subject: [PATCH 2/2] issue #146: display icon for calendar event --- classes/calendar/calendar.php | 1 + pix/auth_outage.png | Bin 0 -> 343 bytes pix/auth_outage.svg | 1 + 3 files changed, 2 insertions(+) create mode 100644 pix/auth_outage.png create mode 100644 pix/auth_outage.svg diff --git a/classes/calendar/calendar.php b/classes/calendar/calendar.php index c0859d1..dc86d47 100644 --- a/classes/calendar/calendar.php +++ b/classes/calendar/calendar.php @@ -98,6 +98,7 @@ class calendar { 'userid' => 0, 'modulename' => '', 'instance' => $outage->id, + 'component' => 'auth_outage', 'eventtype' => 'auth_outage', 'timestart' => $outage->starttime, 'visible' => true, diff --git a/pix/auth_outage.png b/pix/auth_outage.png new file mode 100644 index 0000000000000000000000000000000000000000..4db9ca2f1ee0e523ac6382a7420ba4a5662ad70d GIT binary patch literal 343 zcmV-d0jU0oP) \ No newline at end of file