liquid_feedback_frontend
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/_sidebar_motd.lua Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -0,0 +1,26 @@ 1.4 +if app.session.member and config.motd_intern or config.motd_extern then 1.5 + ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() 1.6 + ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() 1.7 + ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Message of the day" } 1.8 + end } 1.9 + ui.container{ attr = { class = "mdl-card__content what-can-i-do-here" }, content = function() 1.10 + if app.session.member and config.motd_intern then 1.11 + ui.container{ 1.12 + attr = { class = "draft motd" }, 1.13 + content = function() 1.14 + slot.put(config.motd_intern) 1.15 + end 1.16 + } 1.17 + end 1.18 + if config.motd_extern then 1.19 + ui.container{ 1.20 + attr = { class = "draft motd" }, 1.21 + content = function() 1.22 + slot.put(config.motd_extern) 1.23 + end 1.24 + } 1.25 + end 1.26 + end } 1.27 + end } 1.28 + slot.put("<br />") 1.29 +end