Indentation

main
Bob Mottram 2020-11-12 23:00:36 +00:00
parent 9114724236
commit 0560878c2c
1 changed files with 11 additions and 11 deletions

View File

@ -280,29 +280,29 @@ def getProfileHeader(baseDir: str, nickname: str, domain: str,
"""The header of the profile screen, containing background """The header of the profile screen, containing background
image and avatar image and avatar
""" """
htmlStr = '\n<figure class="profileHeader">\n' htmlStr = '\n\n <figure class="profileHeader">\n'
htmlStr += ' <a href="/users/' + \ htmlStr += ' <a href="/users/' + \
nickname + '/' + defaultTimeline + '" title="' + \ nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '">\n' translate['Switch to timeline view'] + '">\n'
htmlStr += ' <img src="/users/' + nickname + '/image.png" /></a>\n' htmlStr += ' <img src="/users/' + nickname + '/image.png" /></a>\n'
htmlStr += ' <figcaption>\n' htmlStr += ' <figcaption>\n'
htmlStr += \ htmlStr += \
' <img loading="lazy" src="' + avatarUrl + '" ' \ ' <img loading="lazy" src="' + avatarUrl + '" ' \
'title="' + avatarDescription + '" alt="' + \ 'title="' + avatarDescription + '" alt="' + \
avatarDescription + '" class="title">\n' avatarDescription + '" class="title">\n'
htmlStr += ' <h1>' + displayName + '</h1>\n' htmlStr += ' <h1>' + displayName + '</h1>\n'
htmlStr += \ htmlStr += \
'<p><b>@' + nickname + '@' + domainFull + '</b><br>\n' ' <p><b>@' + nickname + '@' + domainFull + '</b><br>\n'
htmlStr += \ htmlStr += \
'<a href="/users/' + nickname + \ ' <a href="/users/' + nickname + \
'/qrcode.png" alt="' + translate['QR Code'] + '" title="' + \ '/qrcode.png" alt="' + translate['QR Code'] + '" title="' + \
translate['QR Code'] + '">' + \ translate['QR Code'] + '">' + \
'<img class="qrcode" src="/' + iconsDir + \ '<img class="qrcode" src="/' + iconsDir + \
'/qrcode.png" /></a></p>\n' '/qrcode.png" /></a></p>\n'
htmlStr += ' <p>' + profileDescriptionShort + '</p>\n' htmlStr += ' <p>' + profileDescriptionShort + '</p>\n'
htmlStr += loginButton htmlStr += loginButton
htmlStr += ' </figcaption>\n' htmlStr += ' </figcaption>\n'
htmlStr += '</figure>\n' htmlStr += ' </figure>\n\n'
return htmlStr return htmlStr