liquid_feedback_frontend
view app/main/index/_sidebar_motd_public.lua @ 1693:f6ce58146d40
Added public only MOTD
author | bsw |
---|---|
date | Wed Sep 22 18:28:37 2021 +0200 (2021-09-22) |
parents | 32cc544d5a5b |
children |
line source
1 if config.motd_public then
2 ui.container{ attr = { class = "mdl-special-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
3 ui.container{ attr = { class = "mdl-card__content" }, content = function()
4 slot.put(config.motd_public)
5 end }
6 end }
7 end
9 if not app.session.member and config.motd_only_public then
10 ui.container{ attr = { class = "mdl-special-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
11 ui.container{ attr = { class = "mdl-card__content" }, content = function()
12 slot.put(config.motd_only_public)
13 end }
14 end }
15 end