liquid_feedback_frontend

changeset 1408:9481d9ff4db9

Show instance name only on big screens in header
author bsw
date Mon Aug 20 10:35:20 2018 +0200 (2018-08-20)
parents ebfedd6e44fe
children d61e46939e02
files app/main/_filter_view/30_navigation.lua
line diff
     1.1 --- a/app/main/_filter_view/30_navigation.lua	Fri Aug 17 18:55:07 2018 +0200
     1.2 +++ b/app/main/_filter_view/30_navigation.lua	Mon Aug 20 10:35:20 2018 +0200
     1.3 @@ -33,13 +33,14 @@
     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 -        local title = "LiquidFeedback"
     1.8 -        if config.instance_name then
     1.9 -          title = config.instance_name .. " :: " .. title
    1.10 -        end
    1.11 -        ui.link{ module = "index", view = "index", attr = { class = "mdl-layout-title" }, content = title }
    1.12 +        ui.link{ module = "index", view = "index", attr = { class = "mdl-layout-title" }, content = function()
    1.13 +          local title = 
    1.14 +          if config.instance_name then
    1.15 +            ui.tag{ attr = { class = "mdl-layout--large-screen-only" }, content = config.instance_name .. " ♦ " .. title } 
    1.16 +          end
    1.17 +          ui.tag{ content = "LiquidFeedback" }
    1.18 +        end }
    1.19          ui.tag{ attr = { class = "mdl-layout-spacer" }, content = "" }
    1.20 -
    1.21          if app.session:has_access ("anonymous") then
    1.22            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 ()
    1.23              ui.tag{ tag = "label", attr = { class = "mdl-button mdl-js-button mdl-button--icon", ["for"] = "fixed-header-drawer-exp" }, content = function()

Impressum / About Us