forked from rc/aircox
		
	
		
			
				
	
	
		
			69 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "aircox/page_detail.html" %}
 | 
						|
{% comment %}Detail page of a show{% endcomment %}
 | 
						|
{% load i18n %}
 | 
						|
 | 
						|
{% include "aircox/program_sidebar.html" %}
 | 
						|
 | 
						|
 | 
						|
{% block header_nav %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
 | 
						|
{% block content %}
 | 
						|
{{ block.super }}
 | 
						|
<br>
 | 
						|
{% with has_headline=False %}
 | 
						|
{% if articles %}
 | 
						|
<section>
 | 
						|
    <h4 class="title is-4">{% translate "Articles" %}</h4>
 | 
						|
 | 
						|
    {% for object in articles %}
 | 
						|
    {% include "aircox/widgets/page_item.html" %}
 | 
						|
    {% endfor %}
 | 
						|
 | 
						|
    <br>
 | 
						|
    <nav class="pagination is-centered">
 | 
						|
        <ul class="pagination-list">
 | 
						|
            <li>
 | 
						|
                <a href="{% url "article-list" parent_slug=program.slug %}"
 | 
						|
                    class="pagination-link"
 | 
						|
                    aria-label="{% translate "Show all program's articles" %}">
 | 
						|
                    {% translate "More articles" %}
 | 
						|
                </a>
 | 
						|
            </li>
 | 
						|
        </ul>
 | 
						|
    </nav>
 | 
						|
</section>
 | 
						|
{% endif %}
 | 
						|
{% endwith %}
 | 
						|
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block sidebar %}
 | 
						|
<section>
 | 
						|
    <h4 class="title is-4">{% translate "Diffusions" %}</h4>
 | 
						|
    {% for schedule in program.schedule_set.all %}
 | 
						|
    {{ schedule.get_frequency_verbose }}
 | 
						|
    {% with schedule.start|date:"H:i" as start %}
 | 
						|
    {% with schedule.end|date:"H:i" as end %}
 | 
						|
    <time datetime="{{ start }}">{{ start }}</time>
 | 
						|
    —
 | 
						|
    <time datetime="{{ end }}">{{ end }}</time>
 | 
						|
    {% endwith %}
 | 
						|
    {% endwith %}
 | 
						|
    <small>
 | 
						|
        {% if schedule.initial %}
 | 
						|
        {% with schedule.initial.date as date %}
 | 
						|
        <span title="{% blocktranslate %}Rerun of {{ date }}{% endblocktranslate %}">
 | 
						|
            ({% translate "Rerun" %})
 | 
						|
        </span>
 | 
						|
        {% endwith %}
 | 
						|
        {% endif %}
 | 
						|
    </small>
 | 
						|
    <br>
 | 
						|
    {% endfor %}
 | 
						|
</section>
 | 
						|
{{ block.super }}
 | 
						|
{% endblock %}
 | 
						|
 |