{% extends "admin/change_list.html" %}
{% load url from future %}
{% load i18n %}

{% block object-tools %}
  {% if has_add_permission %}
    <ul class="object-tools">
      {% if user.is_superuser %}
      <li>
        <a href="dump/">
          {% trans "Dump data" %}
        </a>
      </li>
      <li>
        <a href="{% url 'load-data' %}{% if is_popup %}?_popup=1{% endif %}">
          {% trans "Load data" %}
        </a>
      </li>
      {% endif %}
      <li>
        <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
          {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
        </a>
      </li>
    </ul>
  {% endif %}
{% endblock %}
