mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
01356d5ae8
commit
e6426ce439
|
@ -30,27 +30,27 @@ def html_terms_of_service(css_cache: {}, base_dir: str,
|
||||||
copyfile(base_dir + '/accounts/login-background-custom.jpg',
|
copyfile(base_dir + '/accounts/login-background-custom.jpg',
|
||||||
base_dir + '/accounts/login-background.jpg')
|
base_dir + '/accounts/login-background.jpg')
|
||||||
|
|
||||||
TOSText = 'Terms of Service go here.'
|
tos_text = 'Terms of Service go here.'
|
||||||
if os.path.isfile(base_dir + '/accounts/tos.md'):
|
if os.path.isfile(base_dir + '/accounts/tos.md'):
|
||||||
with open(base_dir + '/accounts/tos.md', 'r') as file:
|
with open(base_dir + '/accounts/tos.md', 'r') as file:
|
||||||
TOSText = markdown_to_html(file.read())
|
tos_text = markdown_to_html(file.read())
|
||||||
|
|
||||||
TOSForm = ''
|
tos_form = ''
|
||||||
css_filename = base_dir + '/epicyon-profile.css'
|
css_filename = base_dir + '/epicyon-profile.css'
|
||||||
if os.path.isfile(base_dir + '/epicyon.css'):
|
if os.path.isfile(base_dir + '/epicyon.css'):
|
||||||
css_filename = base_dir + '/epicyon.css'
|
css_filename = base_dir + '/epicyon.css'
|
||||||
|
|
||||||
instanceTitle = \
|
instance_title = \
|
||||||
get_config_param(base_dir, 'instanceTitle')
|
get_config_param(base_dir, 'instanceTitle')
|
||||||
TOSForm = \
|
tos_form = \
|
||||||
html_header_with_external_style(css_filename, instanceTitle, None)
|
html_header_with_external_style(css_filename, instance_title, None)
|
||||||
TOSForm += '<div class="container">' + TOSText + '</div>\n'
|
tos_form += '<div class="container">' + tos_text + '</div>\n'
|
||||||
if admin_nickname:
|
if admin_nickname:
|
||||||
adminActor = local_actor_url(http_prefix, admin_nickname, domain_full)
|
admin_actor = local_actor_url(http_prefix, admin_nickname, domain_full)
|
||||||
TOSForm += \
|
tos_form += \
|
||||||
'<div class="container"><center>\n' + \
|
'<div class="container"><center>\n' + \
|
||||||
'<p class="administeredby">Administered by <a href="' + \
|
'<p class="administeredby">Administered by <a href="' + \
|
||||||
adminActor + '">' + admin_nickname + '</a></p>\n' + \
|
admin_actor + '">' + admin_nickname + '</a></p>\n' + \
|
||||||
'</center></div>\n'
|
'</center></div>\n'
|
||||||
TOSForm += html_footer()
|
tos_form += html_footer()
|
||||||
return TOSForm
|
return tos_form
|
||||||
|
|
Loading…
Reference in New Issue