1 {% extends "base.html" %}
4 {% block bodyargs %}class="home"{% endblock %}
7 <h2>{% trans "Emissions" %}</h2>
9 {% if perms.service_messages.change_message and not service_message.text %}
10 <a href="{% url 'message-edit-view' pk=service_message.id %}">{% trans "Define service message" %}</a>
12 {% if perms.emissions.change_emission %}
13 <a href="{% url 'emission-list' %}">{% trans "All emissions" %}</a>
14 <a href="{% url 'news-list' %}">{% trans "All newsitems" %}</a>
15 {% if perms.emissions.add_emission %}
16 <a href="{% url 'emission-add' %}">{% trans "New emission" %}</a>
22 {% block more-user-links %}
25 <a class="icon-wiki" href="/wiki/">Wiki</a>
28 <a class="icon-regie" href="/regie/">{% trans "Studio" %}</a>
31 <a class="icon-forums" href="https://forums.radiopanik.org/">Forums</a>
33 <a class="icon-members" href="{% url 'members-list-view' %}">{% trans "Members directory" %}</a>
34 {% if has_nonstop and perms.nonstop.add_track %}
35 <a class="icon-music" href="{% url 'nonstop-quick-links' %}">{% trans "Nonstop management" %}</a>
37 {% if has_cms and perms.data.add_page %}
38 <a class="icon-cms" href="{% url 'combo-manager-homepage' %}">{% trans "Editorial pages" %}</a>
40 {% if has_newsletters and perms.newsletter.add_newsletter %}
41 <a class="icon-newsletter" href="{% url 'newsletter-list' %}">{% trans "Newsletters" %}</a>
43 {% if stats_visit_url %}
44 <a target="blank" href="{{ stats_visit_url }}" class="icon-bar-chart">{% trans "Statistics" %}</a>
50 {% if display_poll_button %}
53 <a href="{% url 'vote' %}">Sondage Logo !</a>
58 {% if service_message.text %}
59 <div class="block {{service_message.style}}notice service-message">
60 {{service_message.text|default:""|safe}}
61 {% if perms.service_messages.change_message %}
62 <a class="edit-service-message" href="{% url 'message-edit-view' pk=service_message.id %}">{% trans "Edit service message" %}</a>
67 {% for emission in emissions %}
68 <div class="emission block">
69 <h3><a href="{% url 'emission-view' slug=emission.slug %}">{{ emission.title }}</a></h3>
71 <a class="button" href="{% url 'episode-add' emission_slug=emission.slug %}">{% trans "Add an episode" %}</a>
73 <a class="button" href="{% url 'emission-newsitem-add' emission_slug=emission.slug %}">{% trans "Add a newsitem" %}</a>
75 <a class="button" href="{% url 'emission-update' slug=emission.slug %}">{% trans "Edit emission details" %}</a>
77 {% if emission.schedule_set.exists %}
78 <a class="button" id="add-absence-link" rel="popup" href="{% url 'emission-add-absence' slug=emission.slug %}">{% trans "Add absence" %}</a>
81 <div class="two-columns">
84 <h4>{% trans "Recent episodes" %}</h4>
86 <ul class="episode-list">
87 {% for episode in emission.get_sorted_episodes|slice:":5" %}
88 <li>{{ episode.first_diffusion|date:"d E o H:i"|lower }}
89 <br/> <a href="{% url 'episode-view' emission_slug=emission.slug slug=episode.slug %}">{{ episode.title }}</a>
90 {% if episode.image %}<span class="icon-image"></span>{%endif%}
91 {% if episode.has_sound %}<span class="icon-music"/>{%endif%}
98 <h4>{% trans "Recent newsitems" %}</h4>
100 <ul class="episode-list">
101 {% for newsitem in emission.get_sorted_newsitems|slice:":5" %}
102 <li>{{ newsitem.date|date:"d E o"|lower }}
103 <a href="{% url 'newsitem-view' slug=newsitem.slug %}">{{ newsitem.title }}</a>
106 {% trans "No newsitems." %}
111 </div> <!-- .two-columns -->
118 {% for news_category in news_categories %}
119 <div class="newsitems block">
120 <h3>{% trans "Newsitem:" %} {{ news_category.title }}</h3>
122 <a class="button" href="{% url 'newsitem-add' slug=news_category.slug %}">{% trans "Add a newsitem" %}</a>
124 <ul class="episode-list">
125 {% for newsitem in news_category.get_sorted_newsitems|slice:":10" %}
126 <li>{{ newsitem.date|date:"d E o"|lower }}
127 <a href="{% url 'newsitem-view' slug=newsitem.slug %}">{{ newsitem.title }}</a>
130 {% trans "No newsitems" %}
137 {% if perms.emissions.add_focus %}
138 <div class="newsitems block">
139 <h3>{% trans "Recently updated episodes" %}</h3>
141 <ul class="episode-list">
142 {% for episode in recent_episodes|slice:":20" %}
143 <li>{{ episode.last_update_timestamp|date:"d E o H:i"|lower }}
144 <a href="{% url 'emission-view' slug=episode.emission.slug %}">{{ episode.emission.title }}</a> /
145 <a href="{% url 'episode-view' slug=episode.slug emission_slug=episode.emission.slug %}">{{ episode.title }}</a>
151 <div class="newsitems block">
152 <h3>{% trans "Recently updated newsitems" %}</h3>
154 <ul class="episode-list">
155 {% for newsitem in recent_newsitems|slice:":20" %}
156 <li>{{ newsitem.last_update_timestamp|date:"d E o H:i"|lower }}
157 <a href="{% url 'newsitem-view' slug=newsitem.slug %}">{{ newsitem.title }}</a>
163 <div class="newsitems block">
164 <h3>{% trans "Recently updated sounds" %}</h3>
166 <ul class="episode-list">
167 {% for soundfile in recent_soundfiles|slice:":20" %}
168 <li>{{ soundfile.last_update_timestamp|date:"d E o H:i"|lower }}
169 <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug %}">{{ soundfile.episode.emission.title }}</a> /
170 <a href="{% url 'episode-view' slug=soundfile.episode.slug emission_slug=soundfile.episode.emission.slug %}">{{ soundfile.episode.title }}</a>
171 {% if soundfile.fragment %} ({{soundfile.title}}){% endif %}
184 <div class="block program" data-url="{% url 'nonstop-ajax-program' date='' %}">
185 <h3>{% trans "Program" %}</h3>
189 $('.block.program').each(function() {
190 var url = $(this).data('url');
191 $(this).find('> div').load(url);
197 {% if has_pige_download %}
198 {% include "pige-download.html" %}
201 {% if perms.emissions.add_focus %}
202 <div class="newsitems block">
203 <h3>{% trans "Focus" %}</h3>
205 <ul class="episode-list">
206 {% for focus in focused_items %}
208 {% if focus.emission %}
209 <a href="{% url 'emission-view' slug=focus.emission.slug %}">{% trans "[EMISSION]" %} {{ focus.emission.title }}</a>
210 {% elif focus.episode %}
211 <a href="{% url 'episode-view' slug=focus.episode.slug emission_slug=focus.episode.emission.slug %}">{% trans "[EPISODE]" %} {{ focus.episode.title }}</a>
212 {% elif focus.newsitem %}
213 <a href="{% url 'newsitem-view' slug=focus.newsitem.slug %}">{% trans "[NEWSITEM]" %} {{ focus.newsitem.title }}</a>
214 {% elif focus.soundfile %}
215 <a href="{% url 'episode-view' slug=focus.soundfile.episode.slug emission_slug=focus.soundfile.episode.emission.slug %}">{% trans "[SOUND]" %} {{ focus.soundfile.episode.title }}</a>
216 {% elif focus.page %}
217 <a href="{% url 'combo-manager-page-view' pk=focus.page.id %}">{% trans "[TOPIK]" %} {{focus.page.title }}</a>
233 $(document).ready(function() {
234 $('#other-emissions').click(function() {
235 $('#other-emissions-list').toggle('blind');
237 document.cookie = 'panikdb=on; domain=.radiopanik.org';