forked from indymedia/epicyon
Donate button on profile
parent
a66522cd2e
commit
915d144528
|
@ -1334,6 +1334,11 @@ def htmlProfile(translate: {},projectVersion: str, \
|
||||||
editProfileStr=''
|
editProfileStr=''
|
||||||
actor=profileJson['id']
|
actor=profileJson['id']
|
||||||
|
|
||||||
|
donateButton=''
|
||||||
|
donateUrl=getDonationUrl(profileJson)
|
||||||
|
if donateUrl:
|
||||||
|
donateButton='<a href="'+donateUrl+'"><button class="donateButton">'+translate['Donate']+'</button></a>'
|
||||||
|
|
||||||
if not authorized:
|
if not authorized:
|
||||||
loginButton='<br><a href="/login"><button class="loginButton">'+translate['Login']+'</button></a>'
|
loginButton='<br><a href="/login"><button class="loginButton">'+translate['Login']+'</button></a>'
|
||||||
else:
|
else:
|
||||||
|
@ -1394,7 +1399,7 @@ def htmlProfile(translate: {},projectVersion: str, \
|
||||||
' <h1>'+displayName+'</h1>' \
|
' <h1>'+displayName+'</h1>' \
|
||||||
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
|
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
|
||||||
' <p>'+profileDescriptionShort+'</p>'+ \
|
' <p>'+profileDescriptionShort+'</p>'+ \
|
||||||
loginButton+ \
|
loginButton+donateButton+ \
|
||||||
' </div>' \
|
' </div>' \
|
||||||
'</div>'
|
'</div>'
|
||||||
profileStr= \
|
profileStr= \
|
||||||
|
|
Loading…
Reference in New Issue