From a3aac5e1c29e456c7eda169360025b981c06bd71 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Nov 2020 15:21:22 +0000 Subject: [PATCH] Start of header icons --- webinterface.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/webinterface.py b/webinterface.py index a672a2e6..eac955ce 100644 --- a/webinterface.py +++ b/webinterface.py @@ -6957,6 +6957,16 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, if timeDiff > 100: print('TIMELINE TIMING ' + boxName + ' 4 = ' + str(timeDiff)) + # if this is a news instance and we are viewing the news timeline + newsHeader = False + if defaultTimeline == 'tlnews' and boxName == 'tlnews': + newsHeader = True + + # start of headericons div + if not newsHeader: + if not iconsAsButtons: + newPostButtonStr += '
' + # what screen to go to when a new post is created if boxName == 'dm': if not iconsAsButtons: @@ -7030,17 +7040,6 @@ 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 - - # start of headericons div - 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 tlStr += \