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