]> git.0d.be Git - django-panik-nonstop.git/blob - nonstop/templates/nonstop/zones.html
switch-jack: fix logging
[django-panik-nonstop.git] / nonstop / templates / nonstop / zones.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block page-title %}{% trans "Zones" %} | Nonstop | {{ block.super }}{% endblock %}
5
6 {% block appbar %}
7   <h2>Nonstop - {% trans "Zones" %}</h2>
8   {% if perms.emissions.change_nonstop %}
9     <span class="actions">
10       <a rel="popup" href="{% url 'nonstop-zone-add' %}">{% trans "Add zone" %}</a>
11     </span>
12   {% endif %}
13 {% endblock %}
14
15 {% block more-user-links %}
16   {{ block.super }}
17   <a class="button icon-music" href="{% url 'nonstop-quick-links' %}">{% trans "Nonstop management" %}</a>
18 {% endblock %}
19
20 {% block content %}
21
22   <div class="section">
23     <ul class="objects-list single-links">
24       {% for zone in object_list %}
25         <li {% if zone.start == zone.end %}{% if zone.recurring_playlist_zones.exists %}class="emission-zone"{% else %}class="disabled"{% endif %}{% endif %}
26         ><a href="{% url 'zone-settings' slug=zone.slug %}"><span class="tag">{{zone.start}} → {{zone.end}}</span>
27           {{ zone.title }}
28           {% if zone.start == zone.end %}
29             {% if zone.recurring_playlist_zones.exists %}
30               <span class="extra-info">({% trans "emission playlist zone" %})</span>
31             {% else %}
32               <span class="extra-info disabled-zone">({% trans "disabled zone" %})</span>
33             {% endif %}
34           {% endif %}
35           {% if zone.recurring_playlist_zones.exists %}
36             <span class="extra-info recurring-playlist">
37               {% for emission in zone.get_playlist_emissions %}
38                 {{ emission }}
39                 {% if not forloop.last %}
40                   ,
41                 {% endif %}
42               {% endfor %}
43             </span>
44           {% endif %}
45
46         </a></li>
47       {% endfor %}
48     </ul>
49   </div>
50
51 {% endblock %}