Add bookmarks to go straight to followers list

main
Bob Mottram 2020-08-18 14:42:58 +00:00
parent aa93ad109d
commit 7a0914253e
1 changed files with 21 additions and 18 deletions

View File

@ -2801,30 +2801,32 @@ def htmlProfile(defaultTimeline: str,
profileStr = \ profileStr = \
linkToTimelineStart + profileHeaderStr + \ linkToTimelineStart + profileHeaderStr + \
linkToTimelineEnd + donateSection linkToTimelineEnd + donateSection
profileStr += '<div class="container">\n' profileStr += '<div class="container" id="buttonheader">\n'
profileStr += ' <center>' profileStr += ' <center>'
profileStr += \ profileStr += \
' <a href="' + usersPath + '"><button class="' + postsButton + \ ' <a href="' + usersPath + '#buttonheader"><button class="' + \
'"><span>' + translate['Posts'] + ' </span></button></a>' postsButton + '"><span>' + translate['Posts'] + \
profileStr += \
' <a href="' + usersPath + '/following"><button class="' + \
followingButton + '"><span>' + translate['Following'] + \
' </span></button></a>' ' </span></button></a>'
profileStr += \ profileStr += \
' <a href="' + usersPath + '/followers"><button class="' + \ ' <a href="' + usersPath + '/following#buttonheader">' + \
followersButton + '"><span>' + translate['Followers'] + \ '<button class="' + followingButton + '"><span>' + \
translate['Following'] + ' </span></button></a>'
profileStr += \
' <a href="' + usersPath + '/followers#buttonheader">' + \
'<button class="' + followersButton + \
'"><span>' + translate['Followers'] + ' </span></button></a>'
profileStr += \
' <a href="' + usersPath + '/roles#buttonheader">' + \
'<button class="' + rolesButton + '"><span>' + translate['Roles'] + \
' </span></button></a>' ' </span></button></a>'
profileStr += \ profileStr += \
' <a href="' + usersPath + '/roles"><button class="' + \ ' <a href="' + usersPath + '/skills#buttonheader">' + \
rolesButton + '"><span>' + translate['Roles'] + ' </span></button></a>' '<button class="' + skillsButton + '"><span>' + \
translate['Skills'] + ' </span></button></a>'
profileStr += \ profileStr += \
' <a href="' + usersPath + '/skills"><button class="' + \ ' <a href="' + usersPath + '/shares#buttonheader">' + \
skillsButton + '"><span>' + translate['Skills'] + \ '<button class="' + sharesButton + '"><span>' + \
' </span></button></a>' translate['Shares'] + ' </span></button></a>'
profileStr += \
' <a href="' + usersPath + '/shares"><button class="' + \
sharesButton + '"><span>' + translate['Shares'] + \
' </span></button></a>'
profileStr += editProfileStr + logoutStr profileStr += editProfileStr + logoutStr
profileStr += ' </center>' profileStr += ' </center>'
profileStr += '</div>' profileStr += '</div>'
@ -4548,7 +4550,8 @@ def htmlTimeline(defaultTimeline: str,
# show follow approvals icon # show follow approvals icon
followApprovals = \ followApprovals = \
'<a href="' + usersPath + \ '<a href="' + usersPath + \
'/followers"><img loading="lazy" ' + \ '/followers#buttonheader">' + \
'<img loading="lazy" ' + \
'class="timelineicon" alt="' + \ 'class="timelineicon" alt="' + \
translate['Approve follow requests'] + \ translate['Approve follow requests'] + \
'" title="' + translate['Approve follow requests'] + \ '" title="' + translate['Approve follow requests'] + \