From 728c9bfcb6df1b8dda3c9a5858247258e583533d Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Thu, 7 Nov 2019 10:01:05 +0000
Subject: [PATCH] Different donate link style if logged in

---
 epicyon-profile.css | 4 ++++
 webinterface.py     | 9 +++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/epicyon-profile.css b/epicyon-profile.css
index d52d1f848..0db76b891 100644
--- a/epicyon-profile.css
+++ b/epicyon-profile.css
@@ -432,6 +432,10 @@ input[type=submit] {
     opacity: 0.7;
 }
 
+.donateLink {
+    font-size: var(--font-size3);
+}
+
 input[type=submit]:hover {
     background-color: var(--button-background);
 }
diff --git a/webinterface.py b/webinterface.py
index a1966609f..dadce3cc0 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1334,12 +1334,13 @@ def htmlProfile(translate: {},projectVersion: str, \
     editProfileStr=''
     actor=profileJson['id']
 
-    donateButton=''
+    donateLink=''
     donateUrl=getDonationUrl(profileJson)
     if donateUrl:
         if authorized:
-            donateButton+='<br>'
-        donateButton+='<a href="'+donateUrl+'"><button class="donateButton">'+translate['Donate']+'</button></a>'
+            donateLink+='<br><a href="'+donateUrl+'" class="donateLink">'+translate['Donate']+'</a>'
+        else:
+            donateLink='<br><a href="'+donateUrl+'"><button class="loginLink">'+translate['Donate']+'</button></a>'
 
     if not authorized:
         loginButton='<br><a href="/login"><button class="loginButton">'+translate['Login']+'</button></a>'
@@ -1401,7 +1402,7 @@ def htmlProfile(translate: {},projectVersion: str, \
         '    <h1>'+displayName+'</h1>' \
         '    <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
         '    <p>'+profileDescriptionShort+'</p>'+ \
-        loginButton+donateButton+ \
+        loginButton+donateLink+ \
         '  </div>' \
         '</div>'
     profileStr= \