Improve donation panel on package pages

This commit is contained in:
rubenwardy 2022-01-14 17:52:33 +00:00
parent 8af2942097
commit f3856b5db5
1 changed files with 10 additions and 6 deletions

View File

@ -329,6 +329,16 @@
</p>
{% endif %}
{% if package.author.donate_url %}
<div class="alert alert-secondary mb-4">
<p>{{ _("Like this package? Help support its development by making a donation", display_name=package.author.display_name) }}</p>
<a class="btn btn-block btn-primary" href="{{ package.author.donate_url }}" rel="nofollow">
<i class="fas fa-heart mr-2"></i>
{{ _("Donate now") }}
</a>
</div>
{% endif %}
{% if package.type != package.type.TXP %}
<h3>{{ _("Dependencies") }}</h3>
<dl>
@ -430,12 +440,6 @@
{% endif %}
</dl>
{% if package.author.donate_url %}
<a class="btn btn-secondary btn-block my-4" href="{{ package.author.donate_url }}" rel="nofollow">
{{ _("Like %(display_name)s's work? Donate now!", display_name=package.author.display_name) }}
</a>
{% endif %}
<h3>
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
<a class="btn btn-primary btn-sm float-right" href="{{ package.getURL("packages.create_release") }}"><i class="fas fa-plus"></i></a>