From 2f387779872f22b51212a792673edeee7b2db381 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 2 Oct 2015 21:25:04 +0200 Subject: [PATCH] Add broadcast message ability --- lufi.conf.template | 5 +++++ templates/index.html.ep | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/lufi.conf.template b/lufi.conf.template index dc05335..5e6b90a 100644 --- a/lufi.conf.template +++ b/lufi.conf.template @@ -33,6 +33,11 @@ # optional, default is 32 #token_length => 32, + # broadcast_message which will displayed on all pages of Lutim (but no in json response) + # optional, no default + #broadcast_message => 'Maintenance', + + # default time limit for files # valid values are 0, 1, 7, 30 and 365 # optional, default is 0 (no limit) diff --git a/templates/index.html.ep b/templates/index.html.ep index 92e6d33..6886c64 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -6,6 +6,13 @@ % );
+% if (defined(config('broadcast_message'))) { +
+
+ <%= config('broadcast_message') %> +
+
+% }