Start of header icons

main
Bob Mottram 2020-11-06 15:21:22 +00:00
parent ef7b17196f
commit a3aac5e1c2
1 changed files with 10 additions and 11 deletions

View File

@ -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 += '<div class="headericons">'
# 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,
'<button class="button"><span>' + \
translate['Post'] + '</span></button></a>'
# 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 += '<div class="headericons">'
# This creates a link to the profile page when viewed
# in lynx, but should be invisible in a graphical web browser
tlStr += \