Show instance title on login screen for shell browsers

main
Bob Mottram 2021-02-02 09:56:31 +00:00
parent aa58f439f2
commit b73c730d37
1 changed files with 4 additions and 1 deletions

View File

@ -138,9 +138,12 @@ def htmlLogin(cssCache: {}, translate: {},
loginForm += '<br>\n' loginForm += '<br>\n'
loginForm += '<form method="POST" action="/login">\n' loginForm += '<form method="POST" action="/login">\n'
loginForm += ' <div class="imgcontainer">\n' loginForm += ' <div class="imgcontainer">\n'
instanceTitle = getConfigParam(baseDir, 'instanceTitle')
if not instanceTitle:
instanceTitle = "Epicyon"
loginForm += \ loginForm += \
' <img loading="lazy" src="' + loginImage + \ ' <img loading="lazy" src="' + loginImage + \
'" alt="" class="loginimage">\n' '" alt="' + instanceTitle + '" class="loginimage">\n'
loginForm += loginText + TOSstr + '\n' loginForm += loginText + TOSstr + '\n'
loginForm += ' </div>\n' loginForm += ' </div>\n'
loginForm += '\n' loginForm += '\n'