From fe9669185866f3a5202a00cb32dd5387280418d0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Nov 2020 15:06:03 +0000 Subject: [PATCH] Condistions for header icons div --- webinterface.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index ae1cd152..45282e43 100644 --- a/webinterface.py +++ b/webinterface.py @@ -7029,9 +7029,16 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, '' + + # if this is a news instance and we are viewing the news timeline + newsHeader = False + if defaultTimeline == 'tlnews' and boxName == 'tlnews': + newsHeader = True + # end of headericons div - if newPostButtonStr and not iconsAsButtons and not newsHeader: - tlStr += '' + if not newsHeader: + if not iconsAsButtons: + newPostButtonStr += '' # This creates a link to the profile page when viewed # in lynx, but should be invisible in a graphical web browser