liquid_feedback_frontend
view app/main/index/_sidebar_motd.lua @ 1638:39bf0af7f5e3
Silence compiler warnings regarding discarded const qualifier in mldap library
| author | jbe | 
|---|---|
| date | Tue Feb 09 16:59:01 2021 +0100 (2021-02-09) | 
| 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
