# HG changeset patch # User bsw # Date 1632328117 -7200 # Node ID f6ce58146d40e188a98091b5c14e9644db08dc54 # Parent c91d97d1f5baf97657967e4f995d2e0c47ba370c Added public only MOTD diff -r c91d97d1f5ba -r f6ce58146d40 app/main/index/_sidebar_motd_public.lua --- a/app/main/index/_sidebar_motd_public.lua Wed Sep 22 18:23:30 2021 +0200 +++ b/app/main/index/_sidebar_motd_public.lua Wed Sep 22 18:28:37 2021 +0200 @@ -5,3 +5,11 @@ end } end } end + +if not app.session.member and config.motd_only_public then + ui.container{ attr = { class = "mdl-special-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() + ui.container{ attr = { class = "mdl-card__content" }, content = function() + slot.put(config.motd_only_public) + end } + end } +end