{% extends "admin/base_site.html" %}
{% load i18n %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="../../../">{% trans 'Home' %}</a>
&rsaquo; <a href="../../">{{ app_label|capfirst|escape }}</a>
&rsaquo; <a href="../">{{ opts.verbose_name_plural|capfirst }}</a>
&rsaquo; {% trans 'Import Pages' %}
</div>
{% endblock %}

{% block content %}
{% if errors %}
  <p>{% blocktrans %}Importing pages failed:{% endblocktrans %}</p>
  <ul>
    {% for e in errors %}
      <li>{{ e }}</li>
    {% endfor %}
  </ul>
{% else %}
  <p>{% blocktrans %}Import completed.{% endblocktrans %}</p>
  <ul>
    {% for page, created, messages in pages_created %}
      <li>
        <a href="../{{ page.id }}/">{{ page.get_complete_slug }} "{{ page.title }}"</a>
        {% if created %}
          {% trans "created" %}
        {% else %}
          {% trans "modified" %}
        {% endif %}
        {% if messages %}
          <ul>
            {% for m in messages %}<li>{{ m }}</li>{% endfor %}
          </ul>
        {% endif %}
      </li>
    {% endfor %}
  </ul>
{% endif %}
<p><a href="../">{% trans "Return to page list" %}</a></p>
{% endblock %}

