{% extends 'layout.html' %} {# breadcrumbs is special because we cannot display 'browse' link for files. #} {% set _path_breadcrumbs = breadcrumb_repo(repo, 'browse', path, extend=1) %} {% if _path_breadcrumbs %} {% set breadcrumbs = breadcrumb_repo(repo) + _path_breadcrumbs[:-1] + [('#', _('History: {}').format(_path_breadcrumbs[-1][1]))] %} {% else %} {% set breadcrumbs = breadcrumb_repo(repo) + breadcrumb_repo(repo, 'history') %} {% endif %} {% block content %} {# Header #}

## {{ breadcrumbs[-1][1] }}

{% set restore_dates = path_obj.change_dates[: -limit - 1 : -1] %} {% for restore_date in restore_dates %}
- {# Left side #}
  {% if loop.first %}Latest{% endif %}
  {# Download button #}
  {% if path_obj.isdir %}
  {%- trans %}Download{% endtrans %}
  {% else %} {{ path_obj.get_file_size(restore_date) | filesize }} {%- trans %}Download{% endtrans %} {% endif %}
{% endfor %} {% if limit == restore_dates|count %}
- {%- trans %}Show more...{% endtrans %}
{% endif %}

{% endblock %}