forked from rc/aircox
		
	
		
			
				
	
	
		
			83 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "aircox/basepage_list.html" %}
 | 
						|
{% comment %}Display a list of Pages{% endcomment %}
 | 
						|
{% load i18n aircox %}
 | 
						|
 | 
						|
{% block secondary-nav %}
 | 
						|
{% if not parent and categories %}
 | 
						|
<nav class="nav secondary">
 | 
						|
    <div class="nav-menu nav-categories">
 | 
						|
        {% for cat in categories %}
 | 
						|
        <a class="nav-item{% if cat == category %} active{% endif %}"
 | 
						|
            href="{% url request.resolver_match.url_name category_slug=cat.slug %}">
 | 
						|
            {{ cat.title }}
 | 
						|
        </a>
 | 
						|
        {% endfor %}
 | 
						|
    </div>
 | 
						|
    <a-switch class="button burger"
 | 
						|
        el=".nav-categories" group="nav" icon="fas fa-tags"
 | 
						|
        aria-label="{% translate "Categories" %}">
 | 
						|
    </a-switch>
 | 
						|
</nav>
 | 
						|
{% endif %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block title %}
 | 
						|
{% if parent %}{{ parent.title }}
 | 
						|
{% else %}{{ block.super }}
 | 
						|
{% endif %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block header %}
 | 
						|
{% if page and not object %}
 | 
						|
    {% with page as object %}
 | 
						|
    {{ block.super }}
 | 
						|
    {% endwith %}
 | 
						|
{% else %}
 | 
						|
    {{ block.super }}
 | 
						|
{% endif %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block breadcrumbs %}
 | 
						|
{% if parent and model.list_url_name %}
 | 
						|
    {% include "./widgets/breadcrumbs.html" with page=parent %}
 | 
						|
    <a href="{% url model.list_url_name %}">{{ model|verbose_name:True }}</a>
 | 
						|
{% elif page and model.list_url_name %}
 | 
						|
    <a href="{% url model.list_url_name %}">{{ page.title }}</a>
 | 
						|
    {% if category %}
 | 
						|
    <a href="{% url request.resolver_match.url_name category_slug=category.slug %}">
 | 
						|
        {{ category.title }}
 | 
						|
    </a>
 | 
						|
    {% endif %}
 | 
						|
{% else %}
 | 
						|
    <a href="{% url request.resolver_match.url_name %}">{{ model|verbose_name:True }}</a>
 | 
						|
    {% if category %}
 | 
						|
    <a href="{% url request.resolver_match.url_name category_slug=category.slug %}">
 | 
						|
        {{ category.title }}
 | 
						|
    </a>
 | 
						|
    {% endif %}
 | 
						|
{% endif %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block content-container %}{% endblock %}
 | 
						|
 | 
						|
{% block list-pagination %}
 | 
						|
{% include "./widgets/page_pagination.html" %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block list-container %}
 | 
						|
<section class="container clear-both list grid {{ list_class|default:"" }} list-emissions" role="list">
 | 
						|
{% block list %}
 | 
						|
{% with has_headline=True %}
 | 
						|
    {% for object in object_list %}
 | 
						|
        {% block list_object %}
 | 
						|
            {% page_widget item_widget|default:"program" object %}
 | 
						|
        {% endblock %}
 | 
						|
    {% empty %}
 | 
						|
        {% blocktranslate %}There is nothing published here...{% endblocktranslate %}
 | 
						|
    {% endfor %}
 | 
						|
{% endwith %}
 | 
						|
{% endblock %}
 | 
						|
</section>
 | 
						|
 | 
						|
{% endblock %}
 |