Icons accessible via tab key

merge-requests/30/head
Bob Mottram 2020-08-14 20:49:51 +01:00
parent fc81148eba
commit 5d8289922a
1 changed files with 9 additions and 8 deletions

View File

@ -4145,7 +4145,8 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
'<div class=' + \ '<div class=' + \
'"timeline-avatar-reply">\n' '"timeline-avatar-reply">\n'
replyAvatarImageInPost += \ replyAvatarImageInPost += \
'<a href="/users/' + nickname + \ '<a class="imageAnchor" ' + \
'href="/users/' + nickname + \
'?options=' + replyActor + \ '?options=' + replyActor + \
';' + str(pageNumber) + ';' + \ ';' + str(pageNumber) + ';' + \
replyAvatarUrl + \ replyAvatarUrl + \
@ -4583,7 +4584,7 @@ def htmlTimeline(defaultTimeline: str,
if boxName != 'tlblogs': if boxName != 'tlblogs':
if not manuallyApproveFollowers: if not manuallyApproveFollowers:
newPostButtonStr = \ newPostButtonStr = \
'<a href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \
'/newpost"><img loading="lazy" src="/' + \ '/newpost"><img loading="lazy" src="/' + \
iconsDir + '/newpost.png" title="' + \ iconsDir + '/newpost.png" title="' + \
translate['Create a new post'] + '" alt="| ' + \ translate['Create a new post'] + '" alt="| ' + \
@ -4591,7 +4592,7 @@ def htmlTimeline(defaultTimeline: str,
'" class="timelineicon"/></a>\n' '" class="timelineicon"/></a>\n'
else: else:
newPostButtonStr = \ newPostButtonStr = \
'<a href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \
'/newfollowers"><img loading="lazy" src="/' + \ '/newfollowers"><img loading="lazy" src="/' + \
iconsDir + '/newpost.png" title="' + \ iconsDir + '/newpost.png" title="' + \
translate['Create a new post'] + \ translate['Create a new post'] + \
@ -4599,7 +4600,7 @@ def htmlTimeline(defaultTimeline: str,
'" class="timelineicon"/></a>\n' '" class="timelineicon"/></a>\n'
else: else:
newPostButtonStr = \ newPostButtonStr = \
'<a href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \
'/newblog"><img loading="lazy" src="/' + \ '/newblog"><img loading="lazy" src="/' + \
iconsDir + '/newpost.png" title="' + \ iconsDir + '/newpost.png" title="' + \
translate['Create a new post'] + '" alt="| ' + \ translate['Create a new post'] + '" alt="| ' + \
@ -4607,7 +4608,7 @@ def htmlTimeline(defaultTimeline: str,
'" class="timelineicon"/></a>\n' '" class="timelineicon"/></a>\n'
else: else:
newPostButtonStr = \ newPostButtonStr = \
'<a href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \
'/newdm"><img loading="lazy" src="/' + \ '/newdm"><img loading="lazy" src="/' + \
iconsDir + '/newpost.png" title="' + \ iconsDir + '/newpost.png" title="' + \
translate['Create a new DM'] + \ translate['Create a new DM'] + \
@ -4701,7 +4702,7 @@ def htmlTimeline(defaultTimeline: str,
sharesButtonStr + bookmarksButtonStr + \ sharesButtonStr + bookmarksButtonStr + \
moderationButtonStr + newPostButtonStr moderationButtonStr + newPostButtonStr
tlStr += \ tlStr += \
' <a href="' + usersPath + \ ' <a class="imageAnchor" href="' + usersPath + \
'/search"><img loading="lazy" src="/' + \ '/search"><img loading="lazy" src="/' + \
iconsDir + '/search.png" title="' + \ iconsDir + '/search.png" title="' + \
translate['Search and follow'] + '" alt="| ' + \ translate['Search and follow'] + '" alt="| ' + \
@ -4712,13 +4713,13 @@ def htmlTimeline(defaultTimeline: str,
# indicate that the calendar icon is highlighted # indicate that the calendar icon is highlighted
calendarAltText = '*' + calendarAltText + '*' calendarAltText = '*' + calendarAltText + '*'
tlStr += \ tlStr += \
' <a href="' + usersPath + calendarPath + \ ' <a class="imageAnchor" href="' + usersPath + calendarPath + \
'"><img loading="lazy" src="/' + iconsDir + '/' + \ '"><img loading="lazy" src="/' + iconsDir + '/' + \
calendarImage + '" title="' + translate['Calendar'] + \ calendarImage + '" title="' + translate['Calendar'] + \
'" alt="| ' + calendarAltText + '" class="timelineicon"/></a>\n' '" alt="| ' + calendarAltText + '" class="timelineicon"/></a>\n'
tlStr += \ tlStr += \
' <a href="' + usersPath + '/minimal' + \ ' <a class="imageAnchor" href="' + usersPath + '/minimal' + \
'"><img loading="lazy" src="/' + iconsDir + \ '"><img loading="lazy" src="/' + iconsDir + \
'/showhide.png" title="' + translate['Show/Hide Buttons'] + \ '/showhide.png" title="' + translate['Show/Hide Buttons'] + \
'" alt="| ' + translate['Show/Hide Buttons'] + \ '" alt="| ' + translate['Show/Hide Buttons'] + \