<ul class="breadcrumb"> <li><a href="{{ path('repository', {repo: repo}) }}">{{ repo }}</a></li> {% for breadcrumb in breadcrumbs %} <span class="divider">/</span> <li{% if loop.last %} class="active"{% endif %}>{% if not loop.last %}<a href="{{ path('tree', {repo: repo, branch: branch, tree: breadcrumb.path}) }}">{{ breadcrumb.dir }}</a>{% endif %}{% if loop.last %}{{ breadcrumb.dir }}{% endif %}</li> {% endfor %} {% block extra %}{% endblock %} </ul>