]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/grid.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb_templates / templates / grid.html
diff --git a/panikweb_templates/templates/grid.html b/panikweb_templates/templates/grid.html
deleted file mode 100644 (file)
index 0ea270b..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-{% extends "emissions.html" %}
-{% load paniktags i18n %}
-{% block bodyID %}Grid{% endblock %}
-{% block title %}{% trans 'Grid' %}{% endblock %}
-{% block toptitle %}
-<h1 class="top bg-title"><a href="{% url 'grid' %}">{% trans 'Program' %}</a></h1>
-{% endblock %}
-{% block nav %}
-       {% emission_nav with klass="grid" %}
-{% endblock %}
-{% block main %}
-
-<div id="grid" class="wrapper">
-       <table>
-               <tbody>
-               <tr>
-                         <td style=""><br/></td>
-                         {% for weekday in weekdays %}
-                           <th class="day" width="13%">{{ weekday }}</th>
-                         {% endfor %}
-                         <td style=""><br/></td>
-               </tr>
-               {% for time_header, time_cells in times|zip:grid %}
-               <tr>
-                         <th class="heure">{{ time_header }}</th>
-                         {% for cell in time_cells %}
-                         <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 %}
-                                     {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
-                                       {% if cell.time_label %}
-                                               <div class="time-label">{{ cell.time_label }}</div>
-                                       {% endif %}
-                                     {% if cell.schedules %}
-                                       {% for schedule in cell.sorted_schedules %}
-                                       {% if forloop.first == False and cell.schedules|length > 1 %}<hr />{% endif %}
-                                       <div class="item {% for category in schedule.emission.categories.all %} {{ category|slugify }}{% endfor %}">
-                                       
-                                               <strong>
-                                                       <a href="{% url 'emission-view' slug=schedule.emission.slug %}">
-                                                               <span>{{ schedule.emission.title }}</span>                                                                                              
-                                                       </a>
-                                               </strong>
-                                               <br />
-                                               {% if schedule.weeks_string or schedule.time_label %}
-                                               {% spaceless %}
-                                               <span>(</span>
-                                                 {% if schedule.time_label %}
-                                                 <span>{{ schedule.time_label }}</span>
-                                                   {% if schedule.weeks_string %}<span>, </span>{% endif %}
-                                                 {% endif %}
-                                                 {% if schedule.weeks_string %}
-                                                 <span>{{ schedule.weeks_string }}</span>
-                                                 {% endif %}
-                                                 {% if schedule.time_label_extra %}
-                                                 <span>{{ schedule.time_label_extra }}</span>
-                                                 {% endif %}
-                                               <span>)</span>
-                                               {% endspaceless %}
-                                               {% endif %}
-                                               
-                                       </div>
-                                       {% endfor %}
-                                     {% else %}
-                                      <div class="continu"><strong><a
-                                          href="{% if cell.redirect_path %}{{ cell.redirect_path }}{% else %}{% url 'emission-view' slug=cell.nonstop_slug %}{% endif %}">{{ cell }}</a></strong></div>
-                                       {% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
-                                     {% endif %}
-                         </td>
-                         {% endfor %}
-                         <th class="heure">{{ time_header }}</th>
-               </tr>
-               {% endfor %}
-               </tbody>
-       </table>
-</div>
-{% endblock %}
-
-{% block news %}
-{% endblock %}
-