Snake case

main
Bob Mottram 2022-01-03 21:21:00 +00:00
parent 4b72dfcb30
commit fec1189d27
1 changed files with 14 additions and 14 deletions

View File

@ -30,36 +30,36 @@ def html_about(css_cache: {}, base_dir: str, http_prefix: 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')
aboutText = 'Information about this instance goes here.' about_text = 'Information about this instance goes here.'
if os.path.isfile(base_dir + '/accounts/about.md'): if os.path.isfile(base_dir + '/accounts/about.md'):
with open(base_dir + '/accounts/about.md', 'r') as aboutFile: with open(base_dir + '/accounts/about.md', 'r') as fp_about:
aboutText = markdown_to_html(aboutFile.read()) about_text = markdown_to_html(fp_about.read())
aboutForm = '' about_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')
aboutForm = \ about_form = \
html_header_with_website_markup(css_filename, instanceTitle, html_header_with_website_markup(css_filename, instance_title,
http_prefix, domain_full, http_prefix, domain_full,
system_language) system_language)
aboutForm += '<div class="container">' + aboutText + '</div>' about_form += '<div class="container">' + about_text + '</div>'
if onion_domain: if onion_domain:
aboutForm += \ about_form += \
'<div class="container"><center>\n' + \ '<div class="container"><center>\n' + \
'<p class="administeredby">' + \ '<p class="administeredby">' + \
'http://' + onion_domain + '</p>\n</center></div>\n' 'http://' + onion_domain + '</p>\n</center></div>\n'
if admin_nickname: if admin_nickname:
adminActor = '/users/' + admin_nickname admin_actor = '/users/' + admin_nickname
aboutForm += \ about_form += \
'<div class="container"><center>\n' + \ '<div class="container"><center>\n' + \
'<p class="administeredby">' + \ '<p class="administeredby">' + \
translate['Administered by'] + ' <a href="' + \ translate['Administered by'] + ' <a href="' + \
adminActor + '">' + admin_nickname + '</a>. ' + \ admin_actor + '">' + admin_nickname + '</a>. ' + \
translate['Version'] + ' ' + __version__ + \ translate['Version'] + ' ' + __version__ + \
'</p>\n</center></div>\n' '</p>\n</center></div>\n'
aboutForm += html_footer() about_form += html_footer()
return aboutForm return about_form