]> git.0d.be Git - panikweb.git/commitdiff
Create episode resume /detail and add truncate text on resume
authorlaron <simon@surlaterre.org>
Thu, 15 Aug 2013 17:33:52 +0000 (19:33 +0200)
committerlaron <simon@surlaterre.org>
Thu, 15 Aug 2013 17:33:52 +0000 (19:33 +0200)
panikweb_templates/templates/emissions/detail.html
panikweb_templates/templates/episodes/detail.html

index 83ca23bc194cdc089a3a8f1bd26283de0d0013c9..f37493f75992d28ff245126887d82a9f79b6d582 100644 (file)
@@ -48,7 +48,7 @@
        {% if episodes %}
                <div class="episode-list">
                {% for episode in episodes %}
-                               {% include "episodes/detail.html" %}
+                               {% include "episodes/resume.html" %}
                {% endfor %}
                </div>
        {% endif %}
index 311a3ab678b2fc4925f5ee157b1e604219924a92..5f60622e24bc31a4bf57e663522073daa3b62ece 100644 (file)
                <button  class="symbol download">I</button>
                <button class="symbol buy">C</button>
        </div>
-               <!--
        <div class="logo">
                <img src="http://placehold.it/100X100" />
        </div>
-               -->
        <div class="content">
                <h4 class="title"><a href="{{ episode.slug }}">{{ episode.title }}</a></h4>
+               {% if episode.description %}
+               <div class="description">
+                       {{ episode.description|safe }}
+               </div>
+               {% endif %}
                {% if episode.text %}
                <article class="text">
-                       {{ episode.text|safe }}
+                       {{ episode.text|safe}}
                </article>
                {% endif %}
                <!--