Add about and ToS to links

merge-requests/8/head
Bob Mottram 2020-11-10 11:38:27 +00:00
parent c5a27206c4
commit f56bc33465
2 changed files with 10 additions and 3 deletions

View File

@ -125,6 +125,13 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
# if showHeaderImage:
# htmlStr += '<br>'
htmlStr += \
'<p class="login-text"><a href="/about">' + \
translate['About this Instance'] + '</a></p>'
htmlStr += \
'<p class="login-text"><a href="/terms">' + \
translate['Terms of Service'] + '</a></p>'
linksFilename = baseDir + '/accounts/links.txt'
linksFileContainsEntries = False
if os.path.isfile(linksFilename):

View File

@ -119,11 +119,11 @@ def htmlLogin(cssCache: {}, translate: {},
'<button type="submit" name="register">Register</button>'
TOSstr = \
'<p class="login-text"><a href="/terms">' + \
translate['Terms of Service'] + '</a></p>'
TOSstr += \
'<p class="login-text"><a href="/about">' + \
translate['About this Instance'] + '</a></p>'
TOSstr += \
'<p class="login-text"><a href="/terms">' + \
translate['Terms of Service'] + '</a></p>'
loginButtonStr = ''
if accounts > 0: