Donate button on profile

main2
Bob Mottram 2019-11-07 09:52:00 +00:00
parent a66522cd2e
commit 915d144528
1 changed files with 6 additions and 1 deletions

View File

@ -1334,6 +1334,11 @@ def htmlProfile(translate: {},projectVersion: str, \
editProfileStr=''
actor=profileJson['id']
donateButton=''
donateUrl=getDonationUrl(profileJson)
if donateUrl:
donateButton='<a href="'+donateUrl+'"><button class="donateButton">'+translate['Donate']+'</button></a>'
if not authorized:
loginButton='<br><a href="/login"><button class="loginButton">'+translate['Login']+'</button></a>'
else:
@ -1394,7 +1399,7 @@ def htmlProfile(translate: {},projectVersion: str, \
' <h1>'+displayName+'</h1>' \
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
' <p>'+profileDescriptionShort+'</p>'+ \
loginButton+ \
loginButton+donateButton+ \
' </div>' \
'</div>'
profileStr= \