main2
Bob Mottram 2019-11-07 09:53:07 +00:00
parent 915d144528
commit 0b3809191f
1 changed files with 3 additions and 1 deletions

View File

@ -1337,7 +1337,9 @@ def htmlProfile(translate: {},projectVersion: str, \
donateButton=''
donateUrl=getDonationUrl(profileJson)
if donateUrl:
donateButton='<a href="'+donateUrl+'"><button class="donateButton">'+translate['Donate']+'</button></a>'
if authorized:
donateButton+='<br>'
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>'