mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Add Create Package button to profile page
This commit is contained in:
parent
f1597622ea
commit
54304cf3e0
@ -119,14 +119,19 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if user.checkPerm(current_user, "CHANGE_AUTHOR") %}
|
||||||
{% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %}
|
<a class="float-right btn btn-sm btn-primary"
|
||||||
<a class="float-right btn btn-sm btn-primary"
|
href="{{ url_for('packages.create_edit', author=user.username) }}">
|
||||||
href="{{ url_for('todo.tags', author=user.username) }}">
|
<i class="fas fa-plus mr-1"></i>
|
||||||
View list of tags
|
Create package
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %}
|
||||||
|
<a class="float-right btn btn-sm btn-secondary mr-2"
|
||||||
|
href="{{ url_for('todo.tags', author=user.username) }}">
|
||||||
|
View list of tags
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h2 class="my-3">{{ _("Packages") }}</h2>
|
<h2 class="my-3">{{ _("Packages") }}</h2>
|
||||||
|
|
||||||
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
||||||
|
Loading…
Reference in New Issue
Block a user