From c62283c60ad402456e5cda824b85e5ed31430738 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 Feb 2021 12:24:26 +0000 Subject: [PATCH] Rearrange welcome profile --- webapp_welcome_profile.py | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/webapp_welcome_profile.py b/webapp_welcome_profile.py index e0ca34da4..2fe237f6d 100644 --- a/webapp_welcome_profile.py +++ b/webapp_welcome_profile.py @@ -71,6 +71,25 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str, profileForm += 'accept="' + imageFormats + '">\n' profileForm += '\n' + + actorFilename = baseDir + '/accounts/' + nickname + '@' + domain + '.json' + actorJson = loadJson(actorFilename) + displayNickname = actorJson['name'] + profileForm += '
\n' + profileForm += '
\n' + + profileForm += '
\n' + bioStr = \ + actorJson['summary'].replace('

', '').replace('

', '') + profileForm += '
\n' + profileForm += ' \n' + + profileForm += '
\n' + profileForm += '
' + profileText + '
\n' profileForm += ' \n' profileForm += '\n' - actorFilename = baseDir + '/accounts/' + nickname + '@' + domain + '.json' - actorJson = loadJson(actorFilename) - displayNickname = actorJson['name'] - profileForm += ' \n' - profileForm += '
\n' - - profileForm += '
\n' - bioStr = \ - actorJson['summary'].replace('

', '').replace('

', '') - profileForm += ' \n' - profileForm += ' \n' - - profileForm += '
\n' profileForm += '\n' profileForm += htmlFooter() return profileForm