]> git.0d.be Git - panikweb.git/commitdiff
Adding Schedule in emissions detail
authorlaron <laron@reinhardt>
Tue, 20 Aug 2013 13:28:47 +0000 (15:28 +0200)
committerlaron <laron@reinhardt>
Tue, 20 Aug 2013 13:28:47 +0000 (15:28 +0200)
panikweb_templates/static/css/general.css
panikweb_templates/templates/emissions/detail.html

index 29df55d6a821a5074d108fd0d0b621ba36109723..ae037b1ca1d2ec8feeceae2204dec4d168acb56d 100644 (file)
@@ -174,6 +174,7 @@ ul.inline li{
 .block {display:block;}
 .right{float:right;margin-left:1em;}
 .left{float:left;margin-left:1em;}
+.smooth{opacity:0.5;}
 /**
  * For modern browsers
  * 1. The space content is one way to avoid an Opera bug when the
index 7974eaef2433df6c2731ae0f12a6e649e26d2b14..215070928cdb91549a31a53299906e770df87c93 100644 (file)
                <h1 class="title">{{ emission.title }}</h1>
        </header>
        <div class="metas">
-               <div class="schedule">
+               {% if schedules %}
+                       <div class="schedule">
 
-{% for schedule in schedules %}
-<li>{{ schedule.datetime|date:"l G:i" }}
-{% if schedule.rerun %} (rediff) {% endif %}
-{{ schedule.id }}
-</li>
-{% endfor %}
-                       <div>mercredi &amp; jeudi</div>
-                       <div class="time">7:30-8:00</div>
-
-                       <div>vendredi</div>
-                       <div class="time">9:00-9:30</div>
-               </div>
+                       {% for schedule in schedules %}
+                               <div>{{ schedule.datetime|date:"l G:i" }}
+                               <!--<div class="time">{{ schedule.datetime|date:"G:i" }}</div>-->
+                               {% if schedule.rerun %} <span class="smooth">(rediff)</span> {% endif %}</div>
+                       </li>
+                       {% endfor %}
+                       </div>
+               {% endif %}
                <button class="control todo">
                        <span class="symbol huge">G</span>
                        <span class="listen">Écouter <!--la dernière--></span>