liquid_feedback_frontend
changeset 1693:f6ce58146d40
Added public only MOTD
author | bsw |
---|---|
date | Wed Sep 22 18:28:37 2021 +0200 (2021-09-22) |
parents | c91d97d1f5ba |
children | bca6a066d429 |
files | app/main/index/_sidebar_motd_public.lua |
line diff
1.1 --- a/app/main/index/_sidebar_motd_public.lua Wed Sep 22 18:23:30 2021 +0200 1.2 +++ b/app/main/index/_sidebar_motd_public.lua Wed Sep 22 18:28:37 2021 +0200 1.3 @@ -5,3 +5,11 @@ 1.4 end } 1.5 end } 1.6 end 1.7 + 1.8 +if not app.session.member and config.motd_only_public then 1.9 + ui.container{ attr = { class = "mdl-special-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() 1.10 + ui.container{ attr = { class = "mdl-card__content" }, content = function() 1.11 + slot.put(config.motd_only_public) 1.12 + end } 1.13 + end } 1.14 +end