{{ 'REPOSITORY_REFLIST_TOGGLE'|trans }} {{ ref }}
{% for branch in repository.branches %}
{% set hasBranches = repository.branches|length > 0 %} {% set hasTags = repository.tags|length > 0 %}
    {% if hasBranches %} {% for branch in repository.branches %} {{ branch.name }} {% endfor %} {% endif %}
    {% if hasTags %} {% for tag in repository.tags %} {{ tag.name }} {% endfor %} {% endif %}