Navigation markup

main
Bob Mottram 2020-12-27 15:22:14 +00:00
parent 908e6b5c84
commit f3122480d2
2 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
linksList = sharesList + linksList
if linksList:
htmlStr += '<nav>\n'
for lineStr in linksList:
if ' ' not in lineStr:
if '#' not in lineStr:
@ -215,6 +216,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
htmlStr += \
' <p>' + lineStr + '</p>\n'
linksFileContainsEntries = True
htmlStr += '</nav>\n'
if firstSeparatorAdded:
htmlStr += separatorStr

View File

@ -297,6 +297,9 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
totalVotesStr
htmlStr += ' <span class="newswireDate">'
htmlStr += dateShown + '</span></p>\n'
if htmlStr:
htmlStr = '<nav>\n' + htmlStr + '</nav>\n'
return htmlStr