Add ability to filter by no tags on package tags page

This commit is contained in:
rubenwardy
2021-02-05 16:57:40 +00:00
parent 3839dfbf90
commit 7ff92bc7c1
2 changed files with 17 additions and 3 deletions

View File

@@ -18,13 +18,22 @@
</form>
</div>
<div class="col-md-6 text-right">
{% if only_no_tags %}
<a class="btn btn-primary" href="{{ url_set_query(no_tags=0) }}">
{{ _("Missing tags only") }}
</a>
{% else %}
<a class="btn btn-secondary" href="{{ url_set_query(no_tags=1) }}">
{{ _("Missing tags only") }}
</a>
{% endif %}
{% if check_global_perm(current_user, "EDIT_TAGS") %}
<a class="btn btn-secondary" href="{{ url_for('admin.tag_list') }}">{{ _("Edit Tags") }}</a>
<a class="btn btn-secondary ml-2" href="{{ url_for('admin.tag_list') }}">{{ _("Edit Tags") }}</a>
{% endif %}
</div>
</div>
<table class="table mt-t">
<table class="table mt-5">
<tr>
<th>Package</th>
<th></th>