# HG changeset patch # User bsw # Date 1534754120 -7200 # Node ID 9481d9ff4db920501ac7a1be1b1551381d13a965 # Parent ebfedd6e44fedcb4e18b2bb3ae7df33c34680b48 Show instance name only on big screens in header diff -r ebfedd6e44fe -r 9481d9ff4db9 app/main/_filter_view/30_navigation.lua --- a/app/main/_filter_view/30_navigation.lua Fri Aug 17 18:55:07 2018 +0200 +++ b/app/main/_filter_view/30_navigation.lua Mon Aug 20 10:35:20 2018 +0200 @@ -33,13 +33,14 @@ slot.select ( 'header_bar', function () ui.tag{ tag = "header", attr = { class = "mdl-layout__header mdl-layout__header--seamed" }, content = function() ui.container{ attr = { class = "mdl-layout__header-row" }, content = function() - local title = "LiquidFeedback" - if config.instance_name then - title = config.instance_name .. " :: " .. title - end - ui.link{ module = "index", view = "index", attr = { class = "mdl-layout-title" }, content = title } + ui.link{ module = "index", view = "index", attr = { class = "mdl-layout-title" }, content = function() + local title = + if config.instance_name then + ui.tag{ attr = { class = "mdl-layout--large-screen-only" }, content = config.instance_name .. " ♦ " .. title } + end + ui.tag{ content = "LiquidFeedback" } + end } ui.tag{ attr = { class = "mdl-layout-spacer" }, content = "" } - if app.session:has_access ("anonymous") then ui.form { attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--expandable mdl-textfield--floating-label mdl-textfield--align-right" }, method = "get", module = "index", view = "search", content = function () ui.tag{ tag = "label", attr = { class = "mdl-button mdl-js-button mdl-button--icon", ["for"] = "fixed-header-drawer-exp" }, content = function()