From 17a334bd29ef850c6368f51739d3419b8ed7c52f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 5 Feb 2021 18:46:42 +0000 Subject: [PATCH] Indicate new followers during keyboard navigation --- webapp_timeline.py | 3 ++- webapp_utils.py | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/webapp_timeline.py b/webapp_timeline.py index 2721adb14..c990ed1bb 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -392,7 +392,8 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, } if moderator: navLinks[translate['Mod']] = usersPath + '/moderation' - tlStr += htmlKeyboardNavigation(navLinks) + tlStr += htmlKeyboardNavigation(navLinks, + usersPath, translate, followApprovals) # banner and row of buttons tlStr += \ diff --git a/webapp_utils.py b/webapp_utils.py index 3cc8b655d..a241e1597 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -880,10 +880,21 @@ def getAvatarImageUrl(session, return avatarUrl -def htmlKeyboardNavigation(links: {}) -> str: +def htmlKeyboardNavigation(links: {}, + usersPath=None, translate=None, + followApprovals=False) -> str: """Given a set of links return the html for keyboard navigation """ htmlStr = '