Show instance title on login screen for shell browsers

merge-requests/10/merge
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 += '<form method="POST" action="/login">\n'
loginForm += ' <div class="imgcontainer">\n'
instanceTitle = getConfigParam(baseDir, 'instanceTitle')
if not instanceTitle:
instanceTitle = "Epicyon"
loginForm += \
' <img loading="lazy" src="' + loginImage + \
'" alt="" class="loginimage">\n'
'" alt="' + instanceTitle + '" class="loginimage">\n'
loginForm += loginText + TOSstr + '\n'
loginForm += ' </div>\n'
loginForm += '\n'