diff --git a/webapp_profile.py b/webapp_profile.py index a56ebd0a3..117305c64 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1054,6 +1054,32 @@ def _htmlThemesDropdown(baseDir: str, translate: {}) -> str: return themesDropdown +def _htmlEditProfileGraphicDesign(baseDir: str, translate: {}) -> str: + """Graphic design section on Edit Profile screen + """ + themeFormats = '.zip, .gz' + + graphicsStr = '
' + \ + translate['Graphic Design'] + '\n' + graphicsStr += '
' + graphicsStr += _htmlThemesDropdown(baseDir, translate) + graphicsStr += \ + ' \n' + graphicsStr += ' \n' + graphicsStr += \ + '
\n' + graphicsStr += \ + ' \n' + + graphicsStr += '
\n' + return graphicsStr + + def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, domain: str, port: int, httpPrefix: str, defaultTimeline: str, theme: str, @@ -1063,7 +1089,6 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, """Shows the edit profile screen """ imageFormats = getImageFormats() - themeFormats = '.zip, .gz' path = path.replace('/inbox', '').replace('/outbox', '') path = path.replace('/shares', '') nickname = getNicknameFromActor(path) @@ -1258,24 +1283,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, if isArtist(baseDir, nickname) or \ path.startswith('/users/' + str(adminNickname) + '/'): - graphicsStr = '
' + \ - translate['Graphic Design'] + '\n' - graphicsStr += '
' - graphicsStr += _htmlThemesDropdown(baseDir, translate) - graphicsStr += \ - ' \n' - graphicsStr += ' \n' - graphicsStr += \ - '
\n' - graphicsStr += \ - ' \n' - - graphicsStr += '
\n' + graphicsStr = _htmlEditProfileGraphicDesign(baseDir, translate) if adminNickname: if path.startswith('/users/' + adminNickname + '/'):