From 89f3efd1b49641ce26e1eb6a324076cfb384fe81 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 9 Aug 2019 21:03:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20#156=20=E2=80=94=20Add=20s?= =?UTF-8?q?etting=20to=20customize=20the=20instance=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG | 1 + lib/Lufi/DefaultConfig.pm | 1 + lufi.conf.template | 4 ++++ themes/default/templates/layouts/default.html.ep | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 9e9f0b4..8dcb619 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/lib/Lufi/DefaultConfig.pm b/lib/Lufi/DefaultConfig.pm index bc802f7..7385778 100644 --- a/lib/Lufi/DefaultConfig.pm +++ b/lib/Lufi/DefaultConfig.pm @@ -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, diff --git a/lufi.conf.template b/lufi.conf.template index 647d944..bb01829 100644 --- a/lufi.conf.template +++ b/lufi.conf.template @@ -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', diff --git a/themes/default/templates/layouts/default.html.ep b/themes/default/templates/layouts/default.html.ep index 4338d2c..cb0e47e 100644 --- a/themes/default/templates/layouts/default.html.ep +++ b/themes/default/templates/layouts/default.html.ep @@ -25,7 +25,7 @@