]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/includes/week.html
misc: run manage.py with python3
[panikweb.git] / panikweb_templates / templates / includes / week.html
index aaa32b71a0bb2c108b007cfab6354ffe9971ec87..71f925f938170f2ea866210aa8b99264862056c2 100644 (file)
@@ -1,47 +1,26 @@
-{% if not fragment or fragment = "nav" %}
-<div class="program tabs" data-tab-about="#weekProgramContent-{{ week|slugify }}">
-       <nav class="">
-               <ul class="days custom distributed">
-               {% for day in days %}
-                       <li class=""><button data-tab="#Program-week-{{ day.datetime|slugify }}">{{ day.datetime|date:"D d" }}</button></li>
-               {% endfor %}
-               </ul>
-       </nav>
-</div>
-{% endif %}
-{% if not fragment or fragment = "program" %}
-<div id="weekProgramContent-{{ week|slugify }}" class="program wrapper">
+{% load paniktags %}
+<div id="weekProgramContent-{{ week|slugify }}" class="program">
+
        {% for day in days %}
-       <div data-tabbed="true" class="content padded" id="Program-week-{{ day.datetime|slugify }}">
-               <ul class="custom emission-list list">
-               {% if day.cells %}
+       <div data-tabbed="true" class="content" id="Program-week-{{ day.datetime|slugify }}">
+               <ul class="custom program-week list">
                {% for cell in day.cells %}
-                       <li class="ellipsis" >
-                               <strong>{{ cell.datetime|date:"H:i" }}</strong>&nbsp;-&nbsp;
+                       <li class="cf">
+                               <div class="programDate"><strong>{{ cell.datetime|date:"H:i" }}</strong></div>
+                               <div class="programCell">
                                {% if cell.episode %}
-                                       <a href="{% url 'episode-view' emission_slug=cell.episode.emission.slug slug=cell.episode.slug %}">
-                                               <span>{{ cell.episode.emission.title }}&nbsp;-&nbsp;{{ cell.episode.title }}</span>
-                                               {% if cell.episode.description %}
-                                                       |<span class="smooth">&nbsp;-&nbsp;{{ cell.episode.description|safe|striptags|truncatewords:50 }}</span>
-                                               {% elif cell.episode.emission.description %}
-                                                       |<span class="smooth">&nbsp;-&nbsp;{{ cell.episode.emission.description|safe|striptags|truncatewords:50 }}</span>
-                                               {% endif %}
-                                       </a>
+                                       {% with  cell.episode as episode %}{% episode_resume model="inline" klass="standalone" date=False %}{% endwith %}
                                {% elif cell.emission %}
-                                       <a href="{% url 'emission-view' slug=cell.emission.slug %}">
-                                               <span>{{ cell.emission.title }}</span>
-                                               {% if  cell.emission.description %}
-                                                       <span class="smooth">&nbsp;-&nbsp;{{ cell.emission.description|safe|striptags|truncatewords:50 }}</span>
-                                               {% endif %}
-                                       </a>
+                                       {% with cell.emission as emission %}{% emission_resume %}{% endwith %}
+                               {% else %}
+                               <a href="{% if cell.nonstop.redirect_path %}{{ cell.nonstop.redirect_path }}{% else %}{% url 'emission-view' slug=cell.slug %}{% endif %}" class="nonstop"><em>{{ cell.label }}</em></a> - <span class="smooth categories category">Musique en continu</span> - <a class="playlist" href="{% url 'nonstop-playlist' slug=cell.slug year=cell.datetime.year month=cell.datetime.month day=cell.datetime.day %}">playlist</a>
                                {% endif %}
+                               </div>
                        </li>
+               {% empty %}
+                       <li><div class="info big">Non stop only!</div></li>
                {% endfor %}
-               {% else %}
-                       <li><div class="info">Non stop only!</div></li>
-               {% endif %}
                </ul>
        </div>
        {% endfor %}
 </div>
-{% endif %}