]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/grid.html
remove category icons from grid view
[panikweb.git] / panikweb_templates / templates / grid.html
1 {% extends "emissions.html" %}
2 {% load paniktags %}
3 {% block bodyID %}Grid{% endblock %}
4 {% block title %}La grille{% endblock %}
5 {% block nav %}
6         {% emission_nav with klass="grid" %}
7 {% endblock %}
8 {% block main %}
9 <div id="grid" class="">
10         <table>
11                 <tbody>
12                 <tr>
13                           <td style=""><br/></td>
14                           {% for weekday in weekdays %}
15                             <th class="day" width="13%">{{ weekday }}</th>
16                           {% endfor %}
17                           <td style=""><br/></td>
18                 </tr>
19                 {% for time_header, time_cells in times|zip:grid %}
20                 <tr>
21                           <th class="heure">{{ time_header }}</th>
22                           {% for cell in time_cells %}
23                           <td class="small cell {% if cell.schedules|length > 1 %}many {% endif %}{% if cell.schedules %}scheduled{% else %}nonstop musique-en-continu{% endif %}" {% if cell.w > 1 %}colspan="{{cell.w}}"{% endif %}
24                                       {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
25                                         {% if cell.time_label %}
26                                                 <div class="time-label">{{ cell.time_label }}</div>
27                                         {% endif %}
28                                       {% if cell.schedules %}
29                                         {% for schedule in cell.schedules %}
30                                         {% if forloop.first == False and cell.schedules|length > 1 %}<hr />{% endif %}
31                                         <div class="item {% if not schedule.emission.categories %}nocat{% endif %} {% for category in schedule.emission.categories.all %} {{ category|slugify }}{% endfor %}">
32                                         
33                                                 <strong>
34                                                         <a href="{% url 'emission-view' slug=schedule.emission.slug %}">
35                                                                 <span>{{ schedule.emission.title }}</span>                                                                                              
36                                                         </a>
37                                                 </strong>
38                                                 {% if schedule.emission.categories %}<br />{% endif %}
39                                                 <br />
40                                                 {% if schedule.weeks_string or schedule.time_label %}
41                                                 {% spaceless %}
42                                                 <span>(</span>
43                                                   {% if schedule.time_label %}
44                                                   <span>{{ schedule.time_label }}</span>
45                                                     {% if schedule.weeks_string %}<span>, </span>{% endif %}
46                                                   {% endif %}
47                                                   {% if schedule.weeks_string %}
48                                                   <span>{{ schedule.weeks_string }}</span>
49                                                   {% endif %}
50                                                   {% if schedule.time_label_extra %}
51                                                   <span>{{ schedule.time_label_extra }}</span>
52                                                   {% endif %}
53                                                 <span>)</span>
54                                                 {% endspaceless %}
55                                                 {% endif %}
56                                                 
57                                         </div>
58                                         {% endfor %}
59                                       {% else %}
60                                       <div class="continu"><strong><a href="{% url 'emission-view' slug=cell.nonstop_slug %}">{{ cell }}</a></strong></div>
61                                         {% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
62                                       {% endif %}
63                           </td>
64                           {% endfor %}
65                           <th class="heure">{{ time_header }}</th>
66                 </tr>
67                 {% endfor %}
68                 </tbody>
69         </table>
70 </div>
71 {% endblock %}
72
73 {% block news %}
74 {% endblock %}
75