forked from rc/aircox
62 lines
1.5 KiB
HTML
62 lines
1.5 KiB
HTML
{% extends "aircox_web/page.html" %}
|
|
{% load i18n aircox_web %}
|
|
|
|
{% block title %}
|
|
{% if program %}
|
|
{% with program.name as program %}
|
|
{% blocktrans %}Diffusions of {{ program }}{% endblocktrans %}
|
|
{% endwith %}
|
|
{% else %}
|
|
{% trans "All diffusions" %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block header %}
|
|
{{ block.super }}
|
|
{% if program %}
|
|
<h4 class="subtitle is-size-3">
|
|
<a href="{% url "program-page" slug=program.slug %}">❬ {{ program.name }}</a></li>
|
|
</h4>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<section class="section">
|
|
{% for object in object_list %}
|
|
{% include "aircox_web/diffusion_item.html" %}
|
|
{% endfor %}
|
|
</section>
|
|
|
|
|
|
{% if is_paginated %}
|
|
<nav class="pagination is-centered" role="pagination" aria-label="{% trans "pagination" %}">
|
|
{% if page_obj.has_previous %}
|
|
<a href="?page={{ page_obj.previous_page_number }}" class="pagination-previous">
|
|
{% else %}
|
|
<a class="pagination-previous" disabled>
|
|
{% endif %}
|
|
{% trans "Previous" %}</a>
|
|
|
|
{% if page_obj.has_next %}
|
|
<a href="?page={{ page_obj.next_page_number }}" class="pagination-next">
|
|
{% else %}
|
|
<a class="pagination-next" disabled>
|
|
{% endif %}
|
|
{% trans "Next" %}</a>
|
|
|
|
<ul class="pagination-list">
|
|
{% for i in paginator.page_range %}
|
|
<li>
|
|
<a class="pagination-link {% if page_obj.number == i %}is-current{% endif %}"
|
|
href="?page={{ i }}">{{ i }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|
|
</section>
|
|
{% endblock %}
|
|
|