Condistions for header icons div

main
Bob Mottram 2020-11-06 15:06:03 +00:00
parent 8e498ff46a
commit fe96691858
1 changed files with 9 additions and 2 deletions

View File

@ -7029,9 +7029,16 @@ 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
# end of headericons div
if newPostButtonStr and not iconsAsButtons and not newsHeader:
tlStr += '</div>'
if not newsHeader:
if not iconsAsButtons:
newPostButtonStr += '</div>'
# This creates a link to the profile page when viewed
# in lynx, but should be invisible in a graphical web browser