{% extends "layouts/" + render_mode + "-wide.html" %} {% block title %}{{_("Tags")}}{% endblock %} {% block content %} {% macro render_tag(tag) -%}
{% if tag.subtag_ids %} {% set total_count = tag.stats.sum_all %} {% else %} {% set total_count = tag.stats.all %} {% endif %} {% if tag.name|length > 15 %} {{tag.name[:12]}}... {% else %} {{tag.name}} {% endif %}
{% if tag.subtag_ids %} {{tag.subtag_ids|length}} {{_("Subtags")}} {% endif %} Settings
{%- endmacro %}
{% include("partials/tools_tags.html") %}

{{_("Priority Tags")}}

{% for tag in result.tags %} {% if tag.display == "priority" and not tag.parent %} {{ render_tag(tag) }} {% endif %} {% endfor %}

{{_("Tags")}}

{% for tag in result.tags %} {% if tag.display == "tag" and not tag.parent %} {{ render_tag(tag) }} {% endif %} {% endfor %}
{% set tag_archive = [] %} {% for tag in result.tags %} {% if tag.display == "archive" %} {% do tag_archive.append(tag.tid) %} {% endif %} {% endfor %} {% if tag_archive|length > 0 %}

{{_("Archived")}}

{% for tag in result.tags %} {% if tag.display == "archive" %} {{ render_tag(tag) }} {% endif %} {% endfor %}
{% endif %} {% endblock %}