{% extends "admin/change_form.html" %}
{% load i18n %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
  <ul class="tools">
    <li><a href="history/">{% trans "History" %}</a></li>
    <li><a href="{% url admin:docbow_inbox_changelist %}?owner={{ original.id }}" class="historylink">Documents reçu(s)</a></li>
    <li><a href="{% url admin:docbow_document_changelist %}?sender={{ original.id }}" class="historylink">Documents envoyés(s)</a></li>
  </ul>
{% endif %}{% endif %}
{% endblock %}
