diff --git a/webapp_column_left.py b/webapp_column_left.py index 1d26b8ec0..f01e71f4a 100644 --- a/webapp_column_left.py +++ b/webapp_column_left.py @@ -291,9 +291,6 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, '

' + translate['Edit Links'] + '

' editLinksForm += \ '
\n' - # editLinksForm += \ - # ' \n' editLinksForm += \ '
\n' + \ ' ' + editLinksForm += \ + ' ' + \ + translate['About this Instance'] + \ + '
' + editLinksForm += \ + ' ' + editLinksForm += \ + '
' + + TOSFilename = baseDir + '/accounts/tos.txt' + TOSStr = '' + if os.path.isfile(TOSFilename): + with open(TOSFilename, 'r') as fp: + TOSStr = fp.read() + + editLinksForm += \ + '
' + editLinksForm += \ + ' ' + \ + translate['Terms of Service'] + \ + '
' + editLinksForm += \ + ' ' + editLinksForm += \ + '
' + editLinksForm += htmlFooter() return editLinksForm