73 lines
2.0 KiB
HTML
73 lines
2.0 KiB
HTML
{% extends "./base.html" %}
|
|
|
|
{% comment %}Display a list of BasePages{% endcomment %}
|
|
{% load i18n aircox %}
|
|
|
|
{% block head_title %}
|
|
{% block title %}
|
|
{{ block.super }}
|
|
{% endblock %}
|
|
—
|
|
{{ station.name }}
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
{{ block.super }}
|
|
|
|
{% block list-container %}
|
|
<section class="container clear-both list list-grid {{ list_class|default:"" }}" role="list">
|
|
{% block list %}
|
|
{% with has_headline=True %}
|
|
{% for object in object_list %}
|
|
{% block list_object %}
|
|
{% page_widget item_widget|default:"item" object %}
|
|
{% endblock %}
|
|
{% empty %}
|
|
{% blocktranslate %}There is nothing published here...{% endblocktranslate %}
|
|
{% endfor %}
|
|
{% endwith %}
|
|
{% endblock %}
|
|
</section>
|
|
|
|
|
|
{% block list-pagination %}
|
|
{% if is_paginated %}
|
|
<hr/>
|
|
{% update_query request.GET.copy page=None as GET %}
|
|
{% with GET.urlencode as GET %}
|
|
<nav class="nav-urls is-centered" role="pagination" aria-label="{% translate "pagination" %}">
|
|
<ul class="urls">
|
|
{% if page_obj.has_previous %}
|
|
{% comment %}Translators: Bottom of the list, "previous page"{% endcomment %}
|
|
<a href="?{{ GET }}&page={{ page_obj.previous_page_number }}" class="left"
|
|
title="{% translate "Previous" %}"
|
|
aria-label="{% translate "Previous" %}">
|
|
<span class="icon"><i class="fa fa-chevron-left"></i></span>
|
|
</a>
|
|
{% endif %}
|
|
|
|
<span>
|
|
{{ page_obj.number }} / {{ page_obj.paginator.num_pages }}
|
|
</span>
|
|
|
|
{% if page_obj.has_next %}
|
|
{% comment %}Translators: Bottom of the list, "Nextpage"{% endcomment %}
|
|
<a href="?{{ GET }}&page={{ page_obj.next_page_number }}" class="right"
|
|
title="{% translate "Next" %}"
|
|
aria-label="{% translate "Next" %}">
|
|
<span class="icon"><i class="fa fa-chevron-right"></i></span>
|
|
</a>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
</nav>
|
|
{% endwith %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
</div>
|
|
{% endblock %}
|