]> git.0d.be Git - django-panik-nonstop.git/blob - nonstop/templates/nonstop/quick_links.html
add page with list of zones, to access settings
[django-panik-nonstop.git] / nonstop / templates / nonstop / quick_links.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block appbar %}
5 <h2>Nonstop</h2>
6 {% endblock %}
7
8 {% block more-user-links %}
9 {{ block.super }}
10 <a href="{% url 'nonstop-quick-links' %}">Gestion nonstop</a>
11 {% endblock %}
12
13 {% block content %}
14
15 <div class="section">
16 <ul>
17  <li><a href="{% url 'nonstop-today' %}">Morceaux diffusés aujourd'hui</a> (avec des liens pour naviguer vers les autres jours)</li>
18  <li><a href="{% url 'artist-list' %}">Artistes</a> présents (un jour ou l'autre) dans le nonstop</li>
19  <li><a href="{% url 'nonstop-search' %}">Recherche</a> dans les pistes et artistes</li>
20 {% if perms.nonstop.add_track %}
21  <li><a href="{% url 'nonstop-upload-tracks' %}">Ajout de nouveaux morceaux</a></li>
22  <li>Édition rapide des métadonnées (langue, Instru, SABAM, CFWB)
23    <ul>
24      <li><a href="{% url 'nonstop-recent-tracks' %}">nouveaux fichiers</a></li>
25      <li><a href="{% url 'nonstop-random-tracks' %}">fichiers au hasards</a></li>
26    </ul></li>
27  <li><a href="{% url 'nonstop-cleanup' %}">Nettoyage de vieux morceaux</a></li>
28  <li><a href="{% url 'nonstop-zones' %}">Paramétrages des zones</a></li>
29  <li><a href="{% url 'nonstop-stats' %}">Statistiques</a></li>
30 {% endif %}
31 </ul>
32 </div>
33
34 <div class="nonstop-days">
35 {% for day in days %}
36 <div class="block program" data-url="{% url 'nonstop-ajax-program' date=day|date:"Y-m-d" %}">
37 <h3>{{day|date:"l d/m"}}</h3>
38 <div></div>
39 </div>
40 {% endfor %}
41 </div>
42
43 <script>
44 $(function() {
45   $('.block.program').each(function() {
46     var url = $(this).data('url');
47     $(this).find('> div').load(url);
48   });
49 });
50 </script>
51
52 {% endblock %}