2020-11-10 10:25:21 +00:00
|
|
|
__filename__ = "webapp_suspended.py"
|
|
|
|
__author__ = "Bob Mottram"
|
|
|
|
__license__ = "AGPL3+"
|
2024-01-21 19:01:20 +00:00
|
|
|
__version__ = "1.5.0"
|
2020-11-10 10:25:21 +00:00
|
|
|
__maintainer__ = "Bob Mottram"
|
2021-09-10 16:14:50 +00:00
|
|
|
__email__ = "bob@libreserver.org"
|
2020-11-10 10:25:21 +00:00
|
|
|
__status__ = "Production"
|
2021-06-15 15:08:12 +00:00
|
|
|
__module_group__ = "Web Interface"
|
2020-11-10 10:25:21 +00:00
|
|
|
|
|
|
|
import os
|
2021-12-26 14:08:58 +00:00
|
|
|
from utils import get_config_param
|
2021-12-29 21:55:09 +00:00
|
|
|
from webapp_utils import html_header_with_external_style
|
|
|
|
from webapp_utils import html_footer
|
2020-11-10 10:25:21 +00:00
|
|
|
|
|
|
|
|
2022-07-12 19:03:30 +00:00
|
|
|
def html_suspended(base_dir: str) -> str:
|
2020-11-10 10:25:21 +00:00
|
|
|
"""Show the screen for suspended accounts
|
|
|
|
"""
|
2022-01-04 13:25:15 +00:00
|
|
|
suspended_form = ''
|
2021-12-31 21:18:12 +00:00
|
|
|
css_filename = base_dir + '/epicyon-suspended.css'
|
2021-12-25 16:17:53 +00:00
|
|
|
if os.path.isfile(base_dir + '/suspended.css'):
|
2021-12-31 21:18:12 +00:00
|
|
|
css_filename = base_dir + '/suspended.css'
|
2020-11-10 10:25:21 +00:00
|
|
|
|
2022-01-04 13:25:15 +00:00
|
|
|
instance_title = \
|
2021-12-26 14:08:58 +00:00
|
|
|
get_config_param(base_dir, 'instanceTitle')
|
2022-01-04 13:25:15 +00:00
|
|
|
suspended_form = \
|
|
|
|
html_header_with_external_style(css_filename, instance_title, None)
|
|
|
|
suspended_form += \
|
2021-07-06 12:50:38 +00:00
|
|
|
'<div><center>\n' + \
|
|
|
|
' <p class="screentitle">Account Suspended</p>\n' + \
|
|
|
|
' <p>See <a href="/terms">Terms of Service</a></p>\n' + \
|
|
|
|
'</center></div>\n'
|
2022-01-04 13:25:15 +00:00
|
|
|
suspended_form += html_footer()
|
|
|
|
return suspended_form
|