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, movedTo, alsoKnownAs,
pinnedContent) pinnedContent)
# Links for keyboard navigation # Normally invisible links for keyboard navigation
profileStr = \ profileStr = \
'<div class="transparent">' + \ '<div class="transparent">' + \
'<label class="transparent">' + \ '<label class="transparent">' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \ '<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
translate['Switch to timeline view'] + '</a></label> | ' + \ translate['Switch to timeline view'] + '</a></label> | ' + \
'<label class="transparent">' + \ '<label class="transparent">' + \
'<a href="/users/' + nickname + '/editprofile">' + \
translate['Edit'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a class="skip-main" href="#buttonheader">' + \ '<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' '</div>\n'
profileStr += profileHeaderStr + donateSection profileStr += profileHeaderStr + donateSection