Banner on edit profile screen

main
Bob Mottram 2020-11-02 17:24:52 +00:00
parent a16dfc3e6a
commit 178c88de3a
1 changed files with 10 additions and 8 deletions

View File

@ -1678,14 +1678,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
moderatorsStr = '' moderatorsStr = ''
themesDropdown = '' themesDropdown = ''
instanceStr = '';
# top banner
instanceStr = \
'<a href="/users/' + nickname + '" title="' + \
translate['Switch to profile view'] + '" alt="' + \
translate['Switch to profile view'] + '">\n'
instanceStr += '<img loading="lazy" class="timeline-banner" src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n'
adminNickname = getConfigParam(baseDir, 'admin') adminNickname = getConfigParam(baseDir, 'admin')
if adminNickname: if adminNickname:
@ -1803,6 +1796,15 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
'" selected>') '" selected>')
editProfileForm = htmlHeader(cssFilename, editProfileCSS) editProfileForm = htmlHeader(cssFilename, editProfileCSS)
# top banner
editProfileForm += \
'<a href="/users/' + nickname + '" title="' + \
translate['Switch to profile view'] + '" alt="' + \
translate['Switch to profile view'] + '">\n'
editProfileForm += '<img loading="lazy" class="timeline-banner" src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n'
editProfileForm += \ editProfileForm += \
'<form enctype="multipart/form-data" method="POST" ' + \ '<form enctype="multipart/form-data" method="POST" ' + \
'accept-charset="UTF-8" action="' + path + '/profiledata">\n' 'accept-charset="UTF-8" action="' + path + '/profiledata">\n'