{% extends "base.html" %}
{% load i18n %}
{% load translations %}
{% load permissions %}

{% block breadcrumbs %}
{% if project %}
<li><a href="{{ project.get_absolute_url }}">{{ project }}</a></li>
{% if subproject %}
<li><a href="{{ subproject.get_absolute_url }}">{{ subproject.name }}</a></li>
{% if translation %}
<li><a href="{{ translation.get_absolute_url }}">{{ translation.language }}</a></li>
{% endif %}
{% endif %}
{% elif changes_user %}
<li><a href="{{ changes_user.profile.get_absolute_url }}">{{ changes_user.profile.get_user_name }}</a></li>
{% elif language %}
<li><a href="{% url 'languages' %}">{% trans "Languages" %}</a></li>
<li><a href="{{ language.get_absolute_url }}">{{ language }}</a></li>
{% endif %}
<li><a href="{% url 'changes' %}?{{ query_string }}">Changes</a></li>
{% endblock %}

{% block content %}

{% can_download_changes user project as user_can_download_changes %}

{% if user_can_download_changes or changes_rss %}
<ul class="pagination pull-right flip">
{% if user_can_download_changes %}
<li>
<a href="{% url 'changes-csv' %}?{{ query_string }}" title="{% trans "Download all changes as CSV" %}"><i class="fa fa-download"></i></a>
</li>
{% endif %}
{% if changes_rss %}
<li>
<a href="{{ changes_rss }}" title="{% trans "Follow using RSS" %}"><i class="fa fa-rss"></i></a>
</li>
{% endif %}
</ul>
{% endif %}

{% include "paginator.html" %}

{% with object_list as last_changes %}
{% include "last-changes-content.html" %}
{% endwith %}

{% include "paginator.html" %}

{% endblock %}
