forked from rc/aircox
		
	cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
		
			
				
	
	
		
			75 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "./public.html" %}
 | 
						|
{% load i18n aircox %}
 | 
						|
 | 
						|
 | 
						|
{% block head_title %}{{ station.name }}{% endblock %}
 | 
						|
 | 
						|
{% block title %}{% if page %}{{ block.super }}{% endif %}{% endblock %}
 | 
						|
 | 
						|
 | 
						|
{% block breadcrumbs-container %}{% endblock %}
 | 
						|
 | 
						|
{% block content-container %}
 | 
						|
{{ block.super }}
 | 
						|
 | 
						|
{% if next_diffs %}
 | 
						|
<section class="container">
 | 
						|
    <h2 class="title">
 | 
						|
        {% with station.name as station %}
 | 
						|
            {% blocktrans %}Today on {{ station }}{% endblocktrans %}
 | 
						|
        {% endwith %}
 | 
						|
    </h2>
 | 
						|
 | 
						|
    <div class="mb-3">
 | 
						|
    {% with next_diffs.0 as obj %}
 | 
						|
        {% page_widget "wide" obj.episode diffusion=obj timetable=True %}
 | 
						|
    {% endwith %}
 | 
						|
    </div>
 | 
						|
 | 
						|
    <hr/>
 | 
						|
 | 
						|
    <a-carousel section-class="card-grid">
 | 
						|
        {% for obj in next_diffs|slice:"1:" %}
 | 
						|
            {% if object != diffusion %}
 | 
						|
                {% page_widget "card" obj.episode diffusion=obj timetable=True %}
 | 
						|
            {% endif %}
 | 
						|
        {% endfor %}
 | 
						|
    </a-carousel>
 | 
						|
</section>
 | 
						|
{% endif %}
 | 
						|
 | 
						|
{% if logs %}
 | 
						|
<section class="container">
 | 
						|
    <h2 class="title">{% translate "It just happened" %}</h2>
 | 
						|
 | 
						|
    <div class="grid" role="list">
 | 
						|
        {% include "./widgets/logs.html" with object_list=logs %}
 | 
						|
    </div>
 | 
						|
 | 
						|
    <nav class="nav-urls">
 | 
						|
        <a href="{% url "timetable-list" %}"
 | 
						|
            aria-label="{% translate "Show all program's for today" %}">
 | 
						|
            {% translate "Today" %}
 | 
						|
        </a>
 | 
						|
    </nav>
 | 
						|
</section>
 | 
						|
{% endif %}
 | 
						|
 | 
						|
 | 
						|
{% if podcasts %}
 | 
						|
<section class="container">
 | 
						|
    <h2 class="title is-3 p-2">{% translate "Last podcasts" %}</h2>
 | 
						|
    {% include "./widgets/carousel.html" with objects=podcasts url_name="podcast-list" url_label=_("All podcasts") %}
 | 
						|
</section>
 | 
						|
{% endif %}
 | 
						|
 | 
						|
{% if publications %}
 | 
						|
<section class="container">
 | 
						|
    <h2 class="title">{% translate "Last publications" %}</h2>
 | 
						|
    {% include "./widgets/carousel.html" with objects=publications url_name="page-list" url_label=_("All publications") %}
 | 
						|
</section>
 | 
						|
{% endif %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block pages_list %}{% endblock %}
 |