]> git.0d.be Git - panikweb.git/commitdiff
update inline soundline view to display date below the image
authorFrédéric Péters <fpeters@0d.be>
Thu, 26 Sep 2013 02:47:25 +0000 (04:47 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 26 Sep 2013 03:30:08 +0000 (05:30 +0200)
panikweb_templates/templates/soundfiles/resume.html

index 2724ccdd2b0aaccbdb871234a0363f58a664c458..9295932027e4b295e0d123ec4d8217bb8a154829 100644 (file)
@@ -2,25 +2,28 @@
 {% load paniktags %}
 {% load staticfiles %}
 <div class="episode inline cf">
-       <div class="dateBloc">
-               <div class="date">
-                       <div class="day">{{ date|date:"D"|slice:":2"}}</div>
-                       <div class="number">{{ date|date:"d" }}</div>
-                       <div class="month">{{ date|date:"M y" }}</div>
-               </div>
-       </div>
        <div class="logo">
                {% if soundfile.episode.image %}
-                       <img src="{{ soundfile.episode.image|thumbnail:'60x60' }}"/>
+                       <img src="{{ soundfile.episode.image|thumbnail:'50x50' }}"/>
                {% elif episode.emission.image %}
-                       <img src="{{ soundfile.episode.emission.image|thumbnail:'60x60' }}"/>
+                       <img src="{{ soundfile.episode.emission.image|thumbnail:'50x50' }}"/>
                {% else %}
-                       <img class="smooth"  style="width:60px;" src="{% static "img/defaultLogo.png" %}"/>
+                       <img class="smooth"  style="width:50px;" src="{% static "img/defaultLogo.png" %}"/>
                {% endif %}
+               <p class="date">
+               {{date|date:"d M"}}<br/>
+               {{date|date:"y"}}
+               </p>
+
        </div>
        <div class="content">
                <div class="sound right">{% audio sound=soundfile %}</div>
                <div class="title ellipsis">
+                       {% if soundfile.fragment %}
+                       <h5 class="title ellipsis">
+                               {{ soundfile.title }}
+                       </h5>
+                       {% endif %}
                        <h5 class=" inBlock title {% if model = "inline" %}ellipsis{% endif %}">
                                <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a>
                        </h5>