forked from rc/aircox
		
	work on website + page becomes concrete
This commit is contained in:
		
							
								
								
									
										32
									
								
								aircox/templates/admin/aircox/page_change_form.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								aircox/templates/admin/aircox/page_change_form.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,32 @@
 | 
			
		||||
{% extends  "admin/change_form.html" %}
 | 
			
		||||
{% load i18n static %}
 | 
			
		||||
 | 
			
		||||
{% block extrahead %}{{ block.super }}
 | 
			
		||||
<link rel="stylesheet" type="text/css" href="{% static "aircox/vendor.css" %}"/>
 | 
			
		||||
<link rel="stylesheet" type="text/css" href="{% static "aircox/main.css" %}"/>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block submit_buttons_bottom %}
 | 
			
		||||
{% if has_change_permission %}
 | 
			
		||||
<div class="columns is-size-5">
 | 
			
		||||
    <div class="column has-text-left">
 | 
			
		||||
        {% if original and not original.is_trash %}
 | 
			
		||||
        <button type="submit" name="status" value="32" class="button is-danger is-size-6">{% trans "Move to trash" %}</button>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if original and not original.is_draft %}
 | 
			
		||||
        <button type="submit" name="status" value="0" class="button is-warning is-size-6">{% trans "Mark as draft" %}</button>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="column has-text-right">
 | 
			
		||||
        <button type="submit" class="button is-secondary is-size-6">{% trans "Save" %}</button>
 | 
			
		||||
        <button type="submit" name="_continue" class="button is-secondary is-size-6">{% trans "Save and continue" %}</button>
 | 
			
		||||
        {% if not original.is_published %}
 | 
			
		||||
        <button type="submit" name="status" value="16" class="button is-primary is-size-6">{% trans "Publish" %}</button>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
{% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										29
									
								
								aircox/templates/aircox/article_detail.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								aircox/templates/aircox/article_detail.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
			
		||||
{% extends "aircox/page.html" %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
{% block side_nav %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
{% if side_items %}
 | 
			
		||||
<section>
 | 
			
		||||
    <h4 class="title is-4">{% trans "Latest news" %}</h4>
 | 
			
		||||
 | 
			
		||||
    {% for object in side_items %}
 | 
			
		||||
    {% include "aircox/page_item.html" %}
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
 | 
			
		||||
    <br>
 | 
			
		||||
    <nav class="pagination is-centered">
 | 
			
		||||
        <ul class="pagination-list">
 | 
			
		||||
            <li>
 | 
			
		||||
                <a href="{% url "article-list" %}" class="pagination-link"
 | 
			
		||||
                    aria-label="{% trans "Show all news" %}">
 | 
			
		||||
                    {% trans "More news" %}
 | 
			
		||||
                </a>
 | 
			
		||||
            </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
    </nav>
 | 
			
		||||
</section>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										12
									
								
								aircox/templates/aircox/article_list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								aircox/templates/aircox/article_list.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
			
		||||
{% extends "aircox/page_list.html" %}
 | 
			
		||||
{% load i18n aircox %}
 | 
			
		||||
 | 
			
		||||
{% block title %}
 | 
			
		||||
{% if parent %}
 | 
			
		||||
    {% with parent.title as parent %}
 | 
			
		||||
    {% blocktrans %}Articles of {{ parent }}{% endblocktrans %}
 | 
			
		||||
    {% endwith %}
 | 
			
		||||
{% else %}{{ block.super }}{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -67,6 +67,7 @@ Context:
 | 
			
		||||
 | 
			
		||||
                        {% block main %}{% endblock main %}
 | 
			
		||||
                    </main>
 | 
			
		||||
 | 
			
		||||
                    {% if show_side_nav %}
 | 
			
		||||
                    <aside class="column is-one-third-desktop">
 | 
			
		||||
                        {% block cover %}
 | 
			
		||||
 | 
			
		||||
@ -1,20 +1,28 @@
 | 
			
		||||
{% extends "aircox/page.html" %}
 | 
			
		||||
{% load i18n aircox %}
 | 
			
		||||
 | 
			
		||||
{% block title %}{% trans "Timetable" %}{% endblock %}
 | 
			
		||||
{% block title %}
 | 
			
		||||
{% with station.name as station %}
 | 
			
		||||
{% blocktrans %}This week's shows... {% endblocktrans %}
 | 
			
		||||
{% endwith %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block subtitle %}
 | 
			
		||||
<div class="column">
 | 
			
		||||
{% blocktrans %}From <b>{{ start }}</b> to <b>{{ end }}</b>{% endblocktrans %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block main %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
<section class="section">
 | 
			
		||||
    <h3 class="subtitle size-3">
 | 
			
		||||
        {% blocktrans %}From <b>{{ start }}</b> to <b>{{ end }}</b>{% endblocktrans %}
 | 
			
		||||
    </h3>
 | 
			
		||||
 | 
			
		||||
{% with True as hide_schedule %}
 | 
			
		||||
<section>
 | 
			
		||||
    {% unique_id "timetable" as timetable_id %}
 | 
			
		||||
    <a-tabs default="{{ date }}">
 | 
			
		||||
        <template v-slot:tabs="scope" noscript="hidden">
 | 
			
		||||
            <li><a href="{% url "timetable" date=prev_date %}"><</a></li>
 | 
			
		||||
            <li><a href="{% url "timetable" date=prev_date %}">❬ {% trans "Before" %}</a></li>
 | 
			
		||||
 | 
			
		||||
            {% for day in by_date.keys %}
 | 
			
		||||
            <a-tab value="{{ day }}">
 | 
			
		||||
@ -25,11 +33,10 @@
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
 | 
			
		||||
            <li>
 | 
			
		||||
                <a href="{% url "timetable" date=next_date %}">></a>
 | 
			
		||||
                <a href="{% url "timetable" date=next_date %}">{% trans "After" %} ❭</a>
 | 
			
		||||
            </li>
 | 
			
		||||
        </template>
 | 
			
		||||
 | 
			
		||||
        {% with True as hide_schedule %}
 | 
			
		||||
        <template v-slot:default="{value}">
 | 
			
		||||
            {% for day, diffusions in by_date.items %}
 | 
			
		||||
            <noscript><h4 class="subtitle is-4">{{ day|date:"l d F Y" }}</h4></noscript>
 | 
			
		||||
@ -51,8 +58,8 @@
 | 
			
		||||
            </div>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </template>
 | 
			
		||||
        {% endwith %}
 | 
			
		||||
    </a-tabs>
 | 
			
		||||
</section>
 | 
			
		||||
{% endwith %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -32,9 +32,9 @@
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
{% if podcasts or tracks %}
 | 
			
		||||
<section class="columns is-desktop">
 | 
			
		||||
<div class="columns is-desktop">
 | 
			
		||||
    {% if tracks %}
 | 
			
		||||
    <div class="column">
 | 
			
		||||
    <section class="column">
 | 
			
		||||
        <h4 class="title is-4">{% trans "Playlist" %}</h4>
 | 
			
		||||
        <ol>
 | 
			
		||||
            {% for track in tracks %}
 | 
			
		||||
@ -46,17 +46,17 @@
 | 
			
		||||
            </li>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </ol>
 | 
			
		||||
    </div>
 | 
			
		||||
    </section>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if podcasts %}
 | 
			
		||||
    <div class="column">
 | 
			
		||||
    <section class="column">
 | 
			
		||||
        <h4 class="title is-4">{% trans "Podcasts" %}</h4>
 | 
			
		||||
        {% for object in podcasts %}
 | 
			
		||||
        {% include "aircox/podcast_item.html" %}
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
    </section>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</section>
 | 
			
		||||
</div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -2,13 +2,11 @@
 | 
			
		||||
{% load i18n aircox %}
 | 
			
		||||
 | 
			
		||||
{% block title %}
 | 
			
		||||
{% if program %}
 | 
			
		||||
    {% with program.title as program %}
 | 
			
		||||
    {% blocktrans %}Episodes of {{ program }}{% endblocktrans %}
 | 
			
		||||
{% if parent %}
 | 
			
		||||
    {% with parent.title as parent %}
 | 
			
		||||
    {% blocktrans %}Episodes of {{ parent }}{% endblocktrans %}
 | 
			
		||||
    {% endwith %}
 | 
			
		||||
{% else %}
 | 
			
		||||
    {% trans "Episodes" %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
{% else %}{{ block.super }}{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -11,7 +11,7 @@
 | 
			
		||||
 | 
			
		||||
<section class="section">
 | 
			
		||||
    {% if dates %}
 | 
			
		||||
    <nav class="tabs is-centered" aria-label="{% trans "Other days' logs" %}">
 | 
			
		||||
    <nav class="tabs is-medium is-centered" aria-label="{% trans "Other days' logs" %}">
 | 
			
		||||
        <ul>
 | 
			
		||||
        {% for day in dates %}
 | 
			
		||||
            <li {% if day == date %}class="is-active"{% endif %}>
 | 
			
		||||
@ -30,7 +30,7 @@
 | 
			
		||||
 | 
			
		||||
    {# <h4 class="subtitle size-4">{{ date }}</h4> #}
 | 
			
		||||
    {% with True as hide_schedule %}
 | 
			
		||||
    <table class="table is-striped is-hoverable is-fullwidth">
 | 
			
		||||
    <table class="table is-striped is-hoverable is-fullwidth has-background-transparent">
 | 
			
		||||
        {% for object in object_list %}
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>
 | 
			
		||||
 | 
			
		||||
@ -16,7 +16,7 @@ Context:
 | 
			
		||||
 | 
			
		||||
{% block head_title %}
 | 
			
		||||
    {% block title %}{{ title }}{% endblock %}
 | 
			
		||||
    {% if title %} ‐ {% endif %}
 | 
			
		||||
    —
 | 
			
		||||
    {{ station.name }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,15 +1,14 @@
 | 
			
		||||
{% extends "aircox/page.html" %}
 | 
			
		||||
{% load i18n aircox %}
 | 
			
		||||
 | 
			
		||||
{% with view.model|verbose_name:True as model_name_plural %}
 | 
			
		||||
 | 
			
		||||
{% block title %}
 | 
			
		||||
{{ model_name_plural }}
 | 
			
		||||
{{ view.model|verbose_name:True|title }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block side_nav %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
{% if filter_categories|length != 1 %}
 | 
			
		||||
<section class="toolbar">
 | 
			
		||||
    <h4 class="subtitle is-5">{% trans "Filters" %}</h4>
 | 
			
		||||
    <form method="GET" action="">
 | 
			
		||||
@ -51,6 +50,7 @@
 | 
			
		||||
        </div>
 | 
			
		||||
    </form>
 | 
			
		||||
</section>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -97,5 +97,3 @@
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% endwith %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@
 | 
			
		||||
    </noscript>
 | 
			
		||||
 | 
			
		||||
    <a-player ref="player" src="{{ audio_streams.0 }}"
 | 
			
		||||
            live-info-url="{% url "api-live" %}" live-info-timeout="15"
 | 
			
		||||
            live-info-url="{% url "api-live" %}" :live-info-timeout="15"
 | 
			
		||||
            button-title="{% trans "Play/pause audio" %}">
 | 
			
		||||
        <template v-slot:sources>
 | 
			
		||||
            {% for stream in audio_streams %}
 | 
			
		||||
 | 
			
		||||
@ -4,11 +4,11 @@
 | 
			
		||||
{% block side_nav %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
{% if episodes %}
 | 
			
		||||
{% if side_items %}
 | 
			
		||||
<section>
 | 
			
		||||
    <h4 class="title is-4">{% trans "Last shows" %}</h4>
 | 
			
		||||
 | 
			
		||||
    {% for object in episodes %}
 | 
			
		||||
    {% for object in side_items %}
 | 
			
		||||
    {% include "aircox/episode_item.html" %}
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
 | 
			
		||||
@ -16,13 +16,14 @@
 | 
			
		||||
    <nav class="pagination is-centered">
 | 
			
		||||
        <ul class="pagination-list">
 | 
			
		||||
            <li>
 | 
			
		||||
                <a href="{% url "diffusion-list" program_slug=program.slug %}"
 | 
			
		||||
                <a href="{% url "diffusion-list" parent_slug=program.slug %}"
 | 
			
		||||
                    class="pagination-link"
 | 
			
		||||
                    aria-label="{% trans "Show all diffusions" %}">
 | 
			
		||||
                    {% trans "All shows" %}
 | 
			
		||||
                    aria-label="{% trans "Show all program's diffusions" %}">
 | 
			
		||||
                    {% trans "More shows" %}
 | 
			
		||||
                </a>
 | 
			
		||||
            </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
    </nav>
 | 
			
		||||
</section>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
@ -6,3 +6,39 @@
 | 
			
		||||
{% include "aircox/program_header.html" %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% block main %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
 | 
			
		||||
<br>
 | 
			
		||||
 | 
			
		||||
{% with show_headline=False %}
 | 
			
		||||
<div class="columns is-desktop">
 | 
			
		||||
    {% if articles %}
 | 
			
		||||
    <section class="column">
 | 
			
		||||
        <h4 class="title is-4">{% trans "Articles" %}</h4>
 | 
			
		||||
 | 
			
		||||
        {% for object in articles %}
 | 
			
		||||
        {% include "aircox/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="{% trans "Show all program's articles" %}">
 | 
			
		||||
                        {% trans "More articles" %}
 | 
			
		||||
                    </a>
 | 
			
		||||
                </li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </nav>
 | 
			
		||||
    </section>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endwith %}
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user