liquid_feedback_frontend
changeset 1315:4c6165d43981
Show instance name in header
author | bsw |
---|---|
date | Wed Aug 01 17:32:19 2018 +0200 (2018-08-01) |
parents | 74ce9970605b |
children | 186a172c8b9e |
files | app/main/_filter_view/30_navigation.lua |
line diff
1.1 --- a/app/main/_filter_view/30_navigation.lua Wed Aug 01 17:26:16 2018 +0200 1.2 +++ b/app/main/_filter_view/30_navigation.lua Wed Aug 01 17:32:19 2018 +0200 1.3 @@ -33,7 +33,11 @@ 1.4 slot.select ( 'header_bar', function () 1.5 ui.tag{ tag = "header", attr = { class = "mdl-layout__header mdl-layout__header--seamed" }, content = function() 1.6 ui.container{ attr = { class = "mdl-layout__header-row" }, content = function() 1.7 - ui.link{ module = "index", view = "index", attr = { class = "mdl-layout-title" }, content = "LiquidFeedback" } 1.8 + local title = "LiquidFeedback" 1.9 + if config.instance_name then 1.10 + title = config.instance_name .. " :: " .. title 1.11 + end 1.12 + ui.link{ module = "index", view = "index", attr = { class = "mdl-layout-title" }, content = title } 1.13 ui.tag{ attr = { class = "mdl-layout-spacer" }, content = "" } 1.14 1.15 if app.session:has_access ("anonymous") then