# HG changeset patch # User bsw # Date 1632733408 -7200 # Node ID 2558d9c15c449e60d87a60432734c1ceb1411528 # Parent 0cfa0d088aa0f050dda341b0df6b6e9f893e199f Show top MOTD only when no unit or area is selected diff -r 0cfa0d088aa0 -r 2558d9c15c44 app/main/index/index.lua --- a/app/main/index/index.lua Mon Sep 27 11:01:56 2021 +0200 +++ b/app/main/index/index.lua Mon Sep 27 11:03:28 2021 +0200 @@ -45,8 +45,9 @@ ui.cell_main{ content = function() execute.view{ module = "index", view = "_sidebar_motd_public" } - - execute.view{ module = "index", view = "_sidebar_motd_intern_top" } + if not unit_id and not area_id then + execute.view{ module = "index", view = "_sidebar_motd_intern_top" } + end execute.view{ module = "issue", view = "_list" } end }