From 89f3efd1b49641ce26e1eb6a324076cfb384fe81 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Aug 09 2019 19:03:04 +0000 Subject: 📝 Fix #156 — Add setting to customize the instance name --- 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 @@