From f3856b5db565dc3d5b430f8e9a4a7fe0d8f26c02 Mon Sep 17 00:00:00 2001
From: rubenwardy
Date: Fri, 14 Jan 2022 17:52:33 +0000
Subject: [PATCH] Improve donation panel on package pages
---
app/templates/packages/view.html | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html
index 9d575ee8..c70da6ff 100644
--- a/app/templates/packages/view.html
+++ b/app/templates/packages/view.html
@@ -329,6 +329,16 @@
{% endif %}
+ {% if package.author.donate_url %}
+
+
{{ _("Like this package? Help support its development by making a donation", display_name=package.author.display_name) }}
+
+
+ {{ _("Donate now") }}
+
+
+ {% endif %}
+
{% if package.type != package.type.TXP %}
{{ _("Dependencies") }}
@@ -430,12 +440,6 @@
{% endif %}
- {% if package.author.donate_url %}
-
- {{ _("Like %(display_name)s's work? Donate now!", display_name=package.author.display_name) }}
-
- {% endif %}
-
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}