mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 11:47:28 +01:00
Improve donation panel on package pages
This commit is contained in:
parent
8af2942097
commit
f3856b5db5
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user