Keyboard navigation links on profile screen

main
Bob Mottram 2021-02-05 15:15:12 +00:00
parent cb2d627cd9
commit 4bce9b6bf2
1 changed files with 8 additions and 2 deletions

View File

@ -707,15 +707,21 @@ def htmlProfile(rssIconAtTop: bool,
movedTo, alsoKnownAs,
pinnedContent)
# Links for keyboard navigation
# Normally invisible links for keyboard navigation
profileStr = \
'<div class="transparent">' + \
'<label class="transparent">' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
translate['Switch to timeline view'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a href="/users/' + nickname + '/editprofile">' + \
translate['Edit'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a class="skip-main" href="#buttonheader">' + \
translate['Skip to timeline'] + '</a></label>' + \
translate['Skip to timeline'] + '</a></label> |' + \
'<label class="transparent">' + \
'<a href="/logout">' + \
translate['Logout'] + '</a></label>' + \
'</div>\n'
profileStr += profileHeaderStr + donateSection