From 2f387779872f22b51212a792673edeee7b2db381 Mon Sep 17 00:00:00 2001 From: Luc Didry <luc@didry.org> Date: Oct 02 2015 19:25:04 +0000 Subject: Add broadcast message ability --- 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 @@ % ); <div class="inner cover"> <div class="form-group row"> +% if (defined(config('broadcast_message'))) { + <div class="col-sm-12 col-xs-12"> + <div class="alert alert-info"> + <strong><%= config('broadcast_message') %></strong> + </div> + </div> +% } <div class="col-sm-6 col-xs-12"> <select id="delete-day" class="form-control"> % for my $delay (qw/0 1 7 30 365/) {