forked from rc/aircox
		
	work on it
This commit is contained in:
		@ -41,25 +41,35 @@ Context:
 | 
			
		||||
            </nav>
 | 
			
		||||
 | 
			
		||||
            <div class="container">
 | 
			
		||||
                <div class="columns">
 | 
			
		||||
                <div class="columns is-desktop">
 | 
			
		||||
                    <main class="column page">
 | 
			
		||||
                        <header class="header">
 | 
			
		||||
                            {% block header %}
 | 
			
		||||
                            <h1 class="title is-1">{% block title %}{% endblock %}</h1>
 | 
			
		||||
 | 
			
		||||
                            {% if parent %}
 | 
			
		||||
                            <h4 class="subtitle is-size-3">
 | 
			
		||||
                                <a href="{{ parent.path }}">
 | 
			
		||||
                                    ❬ {{ parent.title }}</a></li>
 | 
			
		||||
                            </h4>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                            {% endblock %}
 | 
			
		||||
                        </header>
 | 
			
		||||
 | 
			
		||||
                        {% block main %}{% endblock main %}
 | 
			
		||||
                    </main>
 | 
			
		||||
                    <aside class="column is-one-third">
 | 
			
		||||
                        {% block side_nav %}
 | 
			
		||||
                    {% if nav_side %}
 | 
			
		||||
                    <aside class="column is-one-third-desktop">
 | 
			
		||||
                        {% block cover %}
 | 
			
		||||
                        {% if cover is not None %}
 | 
			
		||||
                        <img class="cover" src="{{ cover.url }}" class="cover"/>
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                        {% endblock %}
 | 
			
		||||
 | 
			
		||||
                        {% block side_nav %}
 | 
			
		||||
                        {% endblock %}
 | 
			
		||||
                    </aside>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
@ -18,27 +18,27 @@ Context variables:
 | 
			
		||||
            class="small-cover">
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="media-content">
 | 
			
		||||
        <div>
 | 
			
		||||
            <h5 class="subtitle is-size-5 is-inline-block">
 | 
			
		||||
                {% if d_page %}
 | 
			
		||||
                <a href="{{ d_page.path }}">{{ d_page.title }}</a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
        <h5 class="subtitle is-size-5">
 | 
			
		||||
            {% if d_page %}
 | 
			
		||||
            <a href="{{ d_page.path }}">{{ d_page.title }}</a>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        </h5>
 | 
			
		||||
 | 
			
		||||
                {% if not page or p_page != page %}
 | 
			
		||||
                {% if d_page %} — {% endif %}
 | 
			
		||||
                {% if p_page %}
 | 
			
		||||
                <a href="{{ p_page.path }}" class="has-text-grey-dark">
 | 
			
		||||
                    {{ p_page.title }}</a>
 | 
			
		||||
                {% else %}
 | 
			
		||||
                {{ program.name }}
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </h5>
 | 
			
		||||
        <div class="">
 | 
			
		||||
            {% if not page or p_page != page %}
 | 
			
		||||
            {% if p_page %}
 | 
			
		||||
            <a href="{{ p_page.path }}" class="has-text-grey-dark">
 | 
			
		||||
                {{ p_page.title }}</a>
 | 
			
		||||
            {% else %}
 | 
			
		||||
            {{ program.name }}
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            {% if not hide_schedule %} — {% endif %}
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {% if not hide_schedule %}
 | 
			
		||||
            <time datetime="{{ object.start|date:"c" }}" title="{{ object.start }}"
 | 
			
		||||
                  class="has-text-weight-light is-size-6">
 | 
			
		||||
                  — {{ object.start|date:"d M, H:i" }}
 | 
			
		||||
                  {{ object.start|date:"d M, H:i" }}
 | 
			
		||||
            </time>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										14
									
								
								aircox_web/templates/aircox_web/diffusion_page.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								aircox_web/templates/aircox_web/diffusion_page.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
{% extends "aircox_web/program_base.html" %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
{% block main %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
{% if podcasts %}
 | 
			
		||||
{% for object in podcasts %}
 | 
			
		||||
{% include "aircox_web/podcast_item.html" %}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% endwith %}
 | 
			
		||||
 | 
			
		||||
@ -12,18 +12,8 @@
 | 
			
		||||
{% 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">
 | 
			
		||||
<section>
 | 
			
		||||
    {% for object in object_list %}
 | 
			
		||||
    {% include "aircox_web/diffusion_item.html" %}
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
 | 
			
		||||
@ -27,10 +27,4 @@ Context:
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% block side_nav %}
 | 
			
		||||
{% if cover is not None %}
 | 
			
		||||
<img class="cover" src="{{ cover.url }}" class="cover"/>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										8
									
								
								aircox_web/templates/aircox_web/podcast_item.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								aircox_web/templates/aircox_web/podcast_item.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
			
		||||
<div class="podcast">
 | 
			
		||||
    {% if object.embed %}
 | 
			
		||||
    {{ object.embed }}
 | 
			
		||||
    {% else %}
 | 
			
		||||
    <audio src="{{ object.url }}" controls>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										29
									
								
								aircox_web/templates/aircox_web/program_base.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								aircox_web/templates/aircox_web/program_base.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
			
		||||
{% extends "aircox_web/page.html" %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
{% block side_nav %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
{% if diffusions %}
 | 
			
		||||
<section>
 | 
			
		||||
    <h4 class="subtitle is-size-4">{% trans "Last shows" %}</h4>
 | 
			
		||||
 | 
			
		||||
    {% for object in diffusions %}
 | 
			
		||||
    {% include "aircox_web/diffusion_item.html" %}
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
 | 
			
		||||
    <br>
 | 
			
		||||
    <nav class="pagination is-centered">
 | 
			
		||||
        <ul class="pagination-list">
 | 
			
		||||
            <li>
 | 
			
		||||
                <a href="{% url "diffusion-list" program_slug=page.slug %}"
 | 
			
		||||
                    class="pagination-link"
 | 
			
		||||
                    aria-label="{% trans "Show all diffusions" %}">
 | 
			
		||||
                    {% trans "All diffusions" %}
 | 
			
		||||
                </a>
 | 
			
		||||
            </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
</section>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
@ -1,38 +1,8 @@
 | 
			
		||||
{% extends "aircox_web/page.html" %}
 | 
			
		||||
{% extends "aircox_web/program_base.html" %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
{% with page.program as program %}
 | 
			
		||||
 | 
			
		||||
{% block header %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
{% include "aircox_web/program_header.html" %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block side_nav %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
{% if diffusions %}
 | 
			
		||||
<section>
 | 
			
		||||
    <h4 class="subtitle is-size-4">{% trans "Last shows" %}</h4>
 | 
			
		||||
 | 
			
		||||
    {% for object in diffusions %}
 | 
			
		||||
    {% include "aircox_web/diffusion_item.html" %}
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
 | 
			
		||||
    <br>
 | 
			
		||||
    <nav class="pagination is-centered">
 | 
			
		||||
        <ul class="pagination-list">
 | 
			
		||||
            <li>
 | 
			
		||||
                <a href="{% url "diffusion-list" program_slug=page.slug %}"
 | 
			
		||||
                    class="pagination-link"
 | 
			
		||||
                    aria-label="{% trans "Show all diffusions" %}">
 | 
			
		||||
                    {% trans "All diffusions" %}
 | 
			
		||||
                </a>
 | 
			
		||||
            </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
</section>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% endwith %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user