📝 Fix #156 — Add setting to customize the instance name

This commit is contained in:
Luc Didry 2019-08-09 21:03:04 +02:00
parent 5910c83648
commit 89f3efd1b4
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
4 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Revision history for Lufi
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
settings (LDAP, invitations…), trouble beginning at screens < 1800px)
- Add setting to customize the instance name (#156)
0.04.0 2019-08-04
- Allow to zip the files before upload

View File

@ -4,6 +4,7 @@ require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw($default_config);
our $default_config = {
instance_name => 'Lufi',
prefix => '/',
provisioning => 100,
provis_step => 5,

View File

@ -32,6 +32,10 @@
# optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT
#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
# Optional, default is 'default'
#theme => 'default',

View File

@ -25,7 +25,7 @@
<body>
<nav class="cyan">
<div class="nav-wrapper container">
<a href="<%= url_for('/') %>" class="brand-logo">&nbsp;<img src="<%= url_for('/img/lufi-min.png') %>" alt="logo"> Lufi</a>
<a href="<%= url_for('/') %>" class="brand-logo">&nbsp;<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>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="<%= $self->config('report') %>"><%= l('Report file') %></a></li>