Keyboard navigation format

merge-requests/30/head
Bob Mottram 2021-02-05 17:33:31 +00:00
parent 19fff61889
commit b39a690b90
1 changed files with 4 additions and 4 deletions

View File

@ -883,10 +883,10 @@ def getAvatarImageUrl(session,
def htmlKeyboardNavigation(links: {}) -> str: def htmlKeyboardNavigation(links: {}) -> str:
"""Given a set of links return the html for keyboard navigation """Given a set of links return the html for keyboard navigation
""" """
htmlStr = '<div class="transparent">' htmlStr = '<div class="transparent"><ul>'
for title, url in links.items(): for title, url in links.items():
htmlStr += '<label class="transparent">' + \ htmlStr += '<li><label class="transparent">' + \
'<a href="' + str(url) + '">' + \ '<a href="' + str(url) + '">' + \
str(title) + '</a></label> | ' str(title) + '</a></label></li>'
htmlStr += '</div>' htmlStr += '</ul></div>'
return htmlStr return htmlStr