Highlight new shares in text mode

merge-requests/16/head
Bob Mottram 2021-02-05 20:24:48 +00:00
parent 4dcb0d2a81
commit cfdc912aff
1 changed files with 4 additions and 1 deletions

View File

@ -375,6 +375,9 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
repliesStr = translate['Replies']
if newReply:
repliesStr = '*' + repliesStr + '*'
sharesStr = translate['Shares']
if newShare:
sharesStr = '*' + sharesStr + '*'
navLinks = {
translate['Switch to profile view']: '/users/' + nickname,
translate['Inbox']: usersPath + '/inbox#timeline',
@ -385,7 +388,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
repliesStr: usersPath + '/tlreplies#timeline',
translate['Outbox']: usersPath + '/inbox#timeline',
translate['Bookmarks']: usersPath + '/tlbookmarks#timeline',
translate['Shares']: usersPath + '/tlshares#timeline',
sharesStr: usersPath + '/tlshares#timeline',
translate['Blogs']: usersPath + '/tlblogs#timeline',
translate['Events']: usersPath + '/tlevents#timeline',
translate['Skip to Newswire']: '#newswire',