📝 Fix #156 — Add setting to customize the instance name
This commit is contained in:
parent
5910c83648
commit
89f3efd1b4
|
@ -9,6 +9,7 @@ Revision history for Lufi
|
||||||
WARNING! You need to do a `carton install --deployment …` to have the fix.
|
WARNING! You need to do a `carton install --deployment …` to have the fix.
|
||||||
- Fix navbar bug (there can be too much items in it, depending on Lufi
|
- Fix navbar bug (there can be too much items in it, depending on Lufi
|
||||||
settings (LDAP, invitations…), trouble beginning at screens < 1800px)
|
settings (LDAP, invitations…), trouble beginning at screens < 1800px)
|
||||||
|
- Add setting to customize the instance name (#156)
|
||||||
|
|
||||||
0.04.0 2019-08-04
|
0.04.0 2019-08-04
|
||||||
- Allow to zip the files before upload
|
- Allow to zip the files before upload
|
||||||
|
|
|
@ -4,6 +4,7 @@ require Exporter;
|
||||||
@ISA = qw(Exporter);
|
@ISA = qw(Exporter);
|
||||||
@EXPORT_OK = qw($default_config);
|
@EXPORT_OK = qw($default_config);
|
||||||
our $default_config = {
|
our $default_config = {
|
||||||
|
instance_name => 'Lufi',
|
||||||
prefix => '/',
|
prefix => '/',
|
||||||
provisioning => 100,
|
provisioning => 100,
|
||||||
provis_step => 5,
|
provis_step => 5,
|
||||||
|
|
|
@ -32,6 +32,10 @@
|
||||||
# optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT
|
# optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT
|
||||||
#secrets => ['fdjsofjoihrei'],
|
#secrets => ['fdjsofjoihrei'],
|
||||||
|
|
||||||
|
# Name of the instance, displayed next to the logo
|
||||||
|
# optional, default is Lufi
|
||||||
|
#instance_name => 'Lufi',
|
||||||
|
|
||||||
# Choose a theme. See the available themes in `themes` directory
|
# Choose a theme. See the available themes in `themes` directory
|
||||||
# Optional, default is 'default'
|
# Optional, default is 'default'
|
||||||
#theme => 'default',
|
#theme => 'default',
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<body>
|
<body>
|
||||||
<nav class="cyan">
|
<nav class="cyan">
|
||||||
<div class="nav-wrapper container">
|
<div class="nav-wrapper container">
|
||||||
<a href="<%= url_for('/') %>" class="brand-logo"> <img src="<%= url_for('/img/lufi-min.png') %>" alt="logo"> Lufi</a>
|
<a href="<%= url_for('/') %>" class="brand-logo"> <img src="<%= url_for('/img/lufi-min.png') %>" alt="logo"> <%= config('instance_name')%></a>
|
||||||
<a href="#" data-activates="mobile" class="button-collapse"><i class="mdi-navigation-menu"></i></a>
|
<a href="#" data-activates="mobile" class="button-collapse"><i class="mdi-navigation-menu"></i></a>
|
||||||
<ul id="nav-mobile" class="right hide-on-med-and-down">
|
<ul id="nav-mobile" class="right hide-on-med-and-down">
|
||||||
<li><a href="<%= $self->config('report') %>"><%= l('Report file') %></a></li>
|
<li><a href="<%= $self->config('report') %>"><%= l('Report file') %></a></li>
|
||||||
|
|
Loading…
Reference in New Issue