forked from indymedia/epicyon
Change profile for news account
parent
18e9cd602c
commit
b987367bda
|
@ -3339,7 +3339,6 @@ def htmlProfile(defaultTimeline: str,
|
||||||
donateSection += '</div>\n'
|
donateSection += '</div>\n'
|
||||||
|
|
||||||
if not authorized:
|
if not authorized:
|
||||||
if not isSystemAccount(nickname):
|
|
||||||
loginButton = \
|
loginButton = \
|
||||||
'<br><a href="/login"><button class="loginButton">' + \
|
'<br><a href="/login"><button class="loginButton">' + \
|
||||||
translate['Login'] + '</button></a>'
|
translate['Login'] + '</button></a>'
|
||||||
|
@ -3426,6 +3425,9 @@ def htmlProfile(defaultTimeline: str,
|
||||||
avatarDescription = avatarDescription.replace('</p>', '')
|
avatarDescription = avatarDescription.replace('</p>', '')
|
||||||
profileHeaderStr = '<div class="hero-image">'
|
profileHeaderStr = '<div class="hero-image">'
|
||||||
profileHeaderStr += ' <div class="hero-text">'
|
profileHeaderStr += ' <div class="hero-text">'
|
||||||
|
|
||||||
|
# TODO maybe display an alternate system account banner
|
||||||
|
if not isSystemAccount(nickname):
|
||||||
profileHeaderStr += \
|
profileHeaderStr += \
|
||||||
' <img loading="lazy" src="' + profileJson['icon']['url'] + \
|
' <img loading="lazy" src="' + profileJson['icon']['url'] + \
|
||||||
'" title="' + avatarDescription + '" alt="' + \
|
'" title="' + avatarDescription + '" alt="' + \
|
||||||
|
|
Loading…
Reference in New Issue