Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fiat Tux
Hat softwares
Lufi
Commits
2f387779
Commit
2f387779
authored
Oct 02, 2015
by
Luc Didry
Browse files
Add broadcast message ability
parent
9dfd0907
Changes
2
Show whitespace changes
Inline
Side-by-side
lufi.conf.template
View file @
2f387779
...
@@ -33,6 +33,11 @@
...
@@ -33,6 +33,11 @@
# optional, default is 32
# optional, default is 32
#token_length => 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
# default time limit for files
# valid values are 0, 1, 7, 30 and 365
# valid values are 0, 1, 7, 30 and 365
# optional, default is 0 (no limit)
# optional, default is 0 (no limit)
...
...
templates/index.html.ep
View file @
2f387779
...
@@ -6,6 +6,13 @@
...
@@ -6,6 +6,13 @@
% );
% );
<div
class=
"inner cover"
>
<div
class=
"inner cover"
>
<div
class=
"form-group row"
>
<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"
>
<div
class=
"col-sm-6 col-xs-12"
>
<select
id=
"delete-day"
class=
"form-control"
>
<select
id=
"delete-day"
class=
"form-control"
>
% for my $delay (qw/0 1 7 30 365/) {
% for my $delay (qw/0 1 7 30 365/) {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment