# HG changeset patch # User bsw # Date 1632733020 -7200 # Node ID 4ddc5841e136f07da218d2f9c821b5d61c104001 # Parent c2d51e2158f6695f7c3f41eeab1708862ac7358d Added MOTD top internal diff -r c2d51e2158f6 -r 4ddc5841e136 app/main/index/_sidebar_motd_intern_top.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main/index/_sidebar_motd_intern_top.lua Mon Sep 27 10:57:00 2021 +0200 @@ -0,0 +1,12 @@ +if app.session.member and config.motd_intern_top then + ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() + ui.container{ attr = { class = "mdl-card__content" }, content = function() + ui.container{ + attr = { class = "draft motd" }, + content = function() + slot.put(config.motd_intern_top) + end + } + end } + end } +end diff -r c2d51e2158f6 -r 4ddc5841e136 app/main/index/index.lua --- a/app/main/index/index.lua Thu Sep 23 18:16:06 2021 +0200 +++ b/app/main/index/index.lua Mon Sep 27 10:57:00 2021 +0200 @@ -46,6 +46,8 @@ execute.view{ module = "index", view = "_sidebar_motd_public" } + execute.view{ module = "index", view = "_sidebar_motd_intern_top" } + execute.view{ module = "issue", view = "_list" } end }