2020-11-10 10:25:21 +00:00
|
|
|
__filename__ = "webapp_suspended.py"
|
|
|
|
__author__ = "Bob Mottram"
|
|
|
|
__license__ = "AGPL3+"
|
2021-01-26 10:07:42 +00:00
|
|
|
__version__ = "1.2.0"
|
2020-11-10 10:25:21 +00:00
|
|
|
__maintainer__ = "Bob Mottram"
|
|
|
|
__email__ = "bob@freedombone.net"
|
|
|
|
__status__ = "Production"
|
|
|
|
|
|
|
|
import os
|
2021-01-11 19:46:21 +00:00
|
|
|
from utils import getConfigParam
|
2020-11-12 17:05:38 +00:00
|
|
|
from webapp_utils import htmlHeaderWithExternalStyle
|
2020-11-10 10:25:21 +00:00
|
|
|
from webapp_utils import htmlFooter
|
|
|
|
|
|
|
|
|
|
|
|
def htmlSuspended(cssCache: {}, baseDir: str) -> str:
|
|
|
|
"""Show the screen for suspended accounts
|
|
|
|
"""
|
|
|
|
suspendedForm = ''
|
|
|
|
cssFilename = baseDir + '/epicyon-suspended.css'
|
|
|
|
if os.path.isfile(baseDir + '/suspended.css'):
|
|
|
|
cssFilename = baseDir + '/suspended.css'
|
|
|
|
|
2021-01-11 19:46:21 +00:00
|
|
|
instanceTitle = \
|
|
|
|
getConfigParam(baseDir, 'instanceTitle')
|
|
|
|
suspendedForm = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
|
2020-11-12 17:05:38 +00:00
|
|
|
suspendedForm += '<div><center>\n'
|
|
|
|
suspendedForm += ' <p class="screentitle">Account Suspended</p>\n'
|
|
|
|
suspendedForm += ' <p>See <a href="/terms">Terms of Service</a></p>\n'
|
|
|
|
suspendedForm += '</center></div>\n'
|
|
|
|
suspendedForm += htmlFooter()
|
2020-11-10 10:25:21 +00:00
|
|
|
return suspendedForm
|