bsw/jbe@1309: if app.session.member and config.motd_intern or config.motd_extern then bsw/jbe@1309: ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() bsw/jbe@1309: ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Message of the day" } bsw/jbe@1309: end } bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content what-can-i-do-here" }, content = function() bsw/jbe@1309: if app.session.member and config.motd_intern then bsw/jbe@1309: ui.container{ bsw/jbe@1309: attr = { class = "draft motd" }, bsw/jbe@1309: content = function() bsw/jbe@1309: slot.put(config.motd_intern) bsw/jbe@1309: end bsw/jbe@1309: } bsw/jbe@1309: end bsw/jbe@1309: if config.motd_extern then bsw/jbe@1309: ui.container{ bsw/jbe@1309: attr = { class = "draft motd" }, bsw/jbe@1309: content = function() bsw/jbe@1309: slot.put(config.motd_extern) bsw/jbe@1309: end bsw/jbe@1309: } bsw/jbe@1309: end bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: slot.put("
") bsw/jbe@1309: end