{% load url from future %}
{% load i18n %}
{% if object_list %}
<table class="staticpages">
    <thead>
      <tr>
        <th>{% trans "Active" %}</th>
        <th>{% trans "Page" %}</th>
        <th>{% trans "Virtual Path" %}</th>
        <th>{% trans "Redirect to URL" %}</th>
        <th>{% trans "Last Edited" %}</th>
      </tr>
    </thead>
    <tbody>
    {% for page in object_list %}
      <tr class="item {% cycle 'even' 'odd' %}">
        <td>{% if page.active %}{% trans 'Yes' %}{% else %}{% trans 'No' %}{% endif %}</td>
        <td><a href="{{ page.get_edit_url }}">{{ page.title }}</a></td>
        <td><a href="{{ page.get_absolute_url }}">{{ page.virtual_path }}</a></td>
        <td>{% if page.url %}<a href="{{ page.url }}">{{ page.url }}</a>{% endif %}</td>
        <td>
          <time class="js-relative-date" title="{{ page.modified_on }}"
            datetime="{{ page.modified_on.isoformat }}">&nbsp;</time>
        </td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
{% else %}
<p>{% trans "No pages yet." %}</p>
{% endif %}
