]> git.0d.be Git - panikweb.git/commitdiff
Style of the grid
authorlaron <simon@surlaterre.org>
Tue, 20 Aug 2013 20:47:21 +0000 (22:47 +0200)
committerlaron <simon@surlaterre.org>
Tue, 20 Aug 2013 20:47:36 +0000 (22:47 +0200)
panikweb_templates/templates/grid.html

index f5dd122dff394f0b9cc6b577f1225526ba529391..0613a01c1c479b62ec172fbfecafa65e218800eb 100644 (file)
@@ -16,7 +16,7 @@
         border-top: 5px solid #D0D0D0;
         border-left: 5px solid #D0D0D0;
     }
-    #grille td {
+    #grille td,#grille th {
         border-bottom: 5px solid #D0D0D0;
         border-right: 5px solid #D0D0D0;
     }
 <tr>
   <td><br/></td>
   {% for weekday in weekdays %}
-    <td width="13%"><h3 class="jour">{{ weekday }}</h3></td>
+    <th width="13%">{{ weekday }}</th>
   {% endfor %}
   <td><br/></td>
 </tr>
 {% for time_header, time_cells in times|zip:grid %}
 <tr>
-  <td class="heure">{{ time_header }}</td>
+  <th class="heure">{{ time_header }}</th>
   {% for cell in time_cells %}
   <td {% if cell.w > 1 %}colspan="{{cell.w}}"{% endif %}
       {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
-      {% if cell.time_label %}<h5>{{ cell.time_label }}</h5>{% endif %}
+      {% if cell.time_label %}<div class="cell-time-label">{{ cell.time_label }}</div>{% endif %}
       {% if cell.schedules %}
         {% for schedule in cell.schedules %}
-        <h4><a href="{% url 'emission-view' slug=schedule.emission.slug %}">{{ schedule.emission.title }}</a></h4>
+        <div class="emission-title"><a href="{% url 'emission-view' slug=schedule.emission.slug %}">{{ schedule.emission.title }}</a></div>
         {% if schedule.weeks_string %}
           ({{ schedule.weeks_string }})
         {% endif %}
         {% endfor %}
       {% else %}
-        <h3 class="continu">{{ cell }}</h3>
+        <div class="continu cell">{{ cell }}</div>
         {% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
       {% endif %}
   </td>
   {% endfor %}
-  <td class="heure">{{ time_header }}</td>
+  <th class="heure">{{ time_header }}</th>
 </tr>
 {% endfor %}
 </tbody>