mirror of https://gitlab.com/bashrc2/epicyon
Show month name in keyboard navigation
parent
d77bd49c89
commit
a18697d0fa
|
@ -415,6 +415,7 @@ def htmlCalendar(cssCache: {}, translate: {},
|
||||||
htmlHideFromScreenReader('←') + ' ' + translate['Previous month']
|
htmlHideFromScreenReader('←') + ' ' + translate['Previous month']
|
||||||
navLinks[prevMonthStr] = calActor + '/calendar?year=' + str(prevYear) + \
|
navLinks[prevMonthStr] = calActor + '/calendar?year=' + str(prevYear) + \
|
||||||
'?month=' + str(prevMonthNumber)
|
'?month=' + str(prevMonthNumber)
|
||||||
screenReaderCal = htmlKeyboardNavigation(textModeBanner, navLinks)
|
screenReaderCal = \
|
||||||
|
htmlKeyboardNavigation(textModeBanner, navLinks, monthName)
|
||||||
|
|
||||||
return headerStr + screenReaderCal + calendarStr + htmlFooter()
|
return headerStr + screenReaderCal + calendarStr + htmlFooter()
|
||||||
|
|
|
@ -432,7 +432,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
}
|
}
|
||||||
if moderator:
|
if moderator:
|
||||||
navLinks[menuModeration] = usersPath + '/moderation#modtimeline'
|
navLinks[menuModeration] = usersPath + '/moderation#modtimeline'
|
||||||
tlStr += htmlKeyboardNavigation(textModeBanner, navLinks,
|
tlStr += htmlKeyboardNavigation(textModeBanner, navLinks, None,
|
||||||
usersPath, translate, followApprovals)
|
usersPath, translate, followApprovals)
|
||||||
|
|
||||||
# banner and row of buttons
|
# banner and row of buttons
|
||||||
|
|
|
@ -887,6 +887,7 @@ def htmlHideFromScreenReader(htmlStr: str) -> str:
|
||||||
|
|
||||||
|
|
||||||
def htmlKeyboardNavigation(banner: str, links: {},
|
def htmlKeyboardNavigation(banner: str, links: {},
|
||||||
|
subHeading=None,
|
||||||
usersPath=None, translate=None,
|
usersPath=None, translate=None,
|
||||||
followApprovals=False) -> str:
|
followApprovals=False) -> str:
|
||||||
"""Given a set of links return the html for keyboard navigation
|
"""Given a set of links return the html for keyboard navigation
|
||||||
|
@ -896,6 +897,10 @@ def htmlKeyboardNavigation(banner: str, links: {},
|
||||||
if banner:
|
if banner:
|
||||||
htmlStr += '<pre aria-label="">' + banner + '<br><br></pre>'
|
htmlStr += '<pre aria-label="">' + banner + '<br><br></pre>'
|
||||||
|
|
||||||
|
if subHeading:
|
||||||
|
htmlStr += '<label class="transparent">' + \
|
||||||
|
subHeading + '</label><br>'
|
||||||
|
|
||||||
# show new follower approvals
|
# show new follower approvals
|
||||||
if usersPath and translate and followApprovals:
|
if usersPath and translate and followApprovals:
|
||||||
htmlStr += '<strong><label class="transparent">' + \
|
htmlStr += '<strong><label class="transparent">' + \
|
||||||
|
|
Loading…
Reference in New Issue