]> git.0d.be Git - django-panik-nonstop.git/blob - nonstop/templates/nonstop/quick_links.html
templates: note day views are (only) about tracks
[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-stats' %}">Statistiques</a></li>
29 {% endif %}
30 </ul>
31 </div>
32
33 <div class="nonstop-days">
34 {% for day in days %}
35 <div class="block program" data-url="{% url 'nonstop-ajax-program' date=day|date:"Y-m-d" %}">
36 <h3>{{day|date:"l d/m"}}</h3>
37 <div></div>
38 </div>
39 {% endfor %}
40 </div>
41
42 <script>
43 $(function() {
44   $('.block.program').each(function() {
45     var url = $(this).data('url');
46     $(this).find('> div').load(url);
47   });
48 });
49 </script>
50
51 {% endblock %}