mirror of https://gitlab.com/bashrc2/epicyon
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
|
__filename__ = "webapp_suspended.py"
|
||
|
__author__ = "Bob Mottram"
|
||
|
__license__ = "AGPL3+"
|
||
|
__version__ = "1.1.0"
|
||
|
__maintainer__ = "Bob Mottram"
|
||
|
__email__ = "bob@freedombone.net"
|
||
|
__status__ = "Production"
|
||
|
|
||
|
import os
|
||
|
from utils import getCSS
|
||
|
from webapp_utils import htmlHeader
|
||
|
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'
|
||
|
|
||
|
suspendedCSS = getCSS(baseDir, cssFilename, cssCache)
|
||
|
if suspendedCSS:
|
||
|
suspendedForm = htmlHeader(cssFilename, suspendedCSS)
|
||
|
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()
|
||
|
return suspendedForm
|