Add about and ToS to links

main
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: # if showHeaderImage:
# htmlStr += '<br>' # 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' linksFilename = baseDir + '/accounts/links.txt'
linksFileContainsEntries = False linksFileContainsEntries = False
if os.path.isfile(linksFilename): if os.path.isfile(linksFilename):

View File

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