liquid_feedback_frontend

annotate app/main/index/_sidebar_motd.lua @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents
children
rev   line source
bsw/jbe@1309 1 if app.session.member and config.motd_intern or config.motd_extern then
bsw/jbe@1309 2 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
bsw/jbe@1309 3 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
bsw/jbe@1309 4 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Message of the day" }
bsw/jbe@1309 5 end }
bsw/jbe@1309 6 ui.container{ attr = { class = "mdl-card__content what-can-i-do-here" }, content = function()
bsw/jbe@1309 7 if app.session.member and config.motd_intern then
bsw/jbe@1309 8 ui.container{
bsw/jbe@1309 9 attr = { class = "draft motd" },
bsw/jbe@1309 10 content = function()
bsw/jbe@1309 11 slot.put(config.motd_intern)
bsw/jbe@1309 12 end
bsw/jbe@1309 13 }
bsw/jbe@1309 14 end
bsw/jbe@1309 15 if config.motd_extern then
bsw/jbe@1309 16 ui.container{
bsw/jbe@1309 17 attr = { class = "draft motd" },
bsw/jbe@1309 18 content = function()
bsw/jbe@1309 19 slot.put(config.motd_extern)
bsw/jbe@1309 20 end
bsw/jbe@1309 21 }
bsw/jbe@1309 22 end
bsw/jbe@1309 23 end }
bsw/jbe@1309 24 end }
bsw/jbe@1309 25 slot.put("<br />")
bsw/jbe@1309 26 end

Impressum / About Us