liquid_feedback_frontend

view app/main/index/_sidebar_motd.lua @ 1858:3d1f0464a3ea

Handle missing ldap.member.allowed function
author bsw
date Tue Sep 20 17:35:29 2022 +0200 (20 months ago)
parents 32cc544d5a5b
children
line source
1 if app.session.member and config.motd_intern or config.motd_extern then
2 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
3 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
4 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Message of the day" }
5 end }
6 ui.container{ attr = { class = "mdl-card__content what-can-i-do-here" }, content = function()
7 if app.session.member and config.motd_intern then
8 ui.container{
9 attr = { class = "draft motd" },
10 content = function()
11 slot.put(config.motd_intern)
12 end
13 }
14 end
15 if config.motd_extern then
16 ui.container{
17 attr = { class = "draft motd" },
18 content = function()
19 slot.put(config.motd_extern)
20 end
21 }
22 end
23 end }
24 end }
25 slot.put("<br />")
26 end

Impressum / About Us