{# Copyright (c) 2021 Julien Floret #} {# Copyright (c) 2021 Robin Jarry #} {# SPDX-License-Identifier: BSD-3-Clause #} {% extends "base.html" %} {% block breadcrumbs %} {{breadcrumbs(['branches', branch.name])}} {% endblock %} {% block page_content %} {% set tags = branch.tags|sort(attribute='name')|list %} {% set released = tags|selectattr('released')|list|length %} {% set max_released = branch.cleanup_policy.max_released_tags %} {% set daily = tags|length - released %} {% set max_daily = branch.cleanup_policy.max_daily_tags %} {% set locked = tags|selectattr('locked')|list|length %}
{{released}}{{'/%d' % max_released if max_released}} tag{{'s' if released > 1 or max_released}} released, {{daily}}{{'/%d' % max_daily if max_daily}} daily{{' (%d locked)' % locked if locked}}.
{% set width = tags|map(attribute='name')|map('length')|max|default(80) %} {% set width = [width, 10]|max %}
{% if tags %}
latest
{% endif %} {% if tags|selectattr("stable")|list %}
stable
{% if tags|selectattr("stable")|list|length > 1 %}
oldstable
{% endif %} {% endif %} {% for tag in tags %}
{{tag.name}}
{% endfor %}
{% endblock %}