]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/emissions/resume.html
templates: add empty alt attributes to icon images
[panikweb.git] / panikweb_templates / templates / emissions / resume.html
index c54b91be7906b0a6c016b8e0ed40403e83fed9b4..df832feb44b3b13cc3a3a53d070b353e633c46e8 100644 (file)
@@ -1,31 +1,36 @@
-{% load thumbnails %}
-{% load staticfiles %}
+{% load thumbnail staticfiles %}
 <div class="emission emission-resume resume cf">
        <div class="{% if emission.archived %}archived{% endif %}">
                <a class="block" href="{% url 'emission-view' slug=emission.slug %}">
                        <div class="logo left">
                                {% if emission.image %}
-                                       <img width="50" height="50" src="{{ emission.image|thumbnail:'50x50' }}"/>
+                                       {% thumbnail emission.image "60x60" crop="50% 25%" as im %}
+                                       <img alt="" width="60" height="60" src="{{im.url}}"/>
+                                       {% endthumbnail %}
                                {% else %}
-                                       <img  class="smooth" width="50" height="50" src="{% static "img/defaultLogo.png" %}"/>
+                                       <img alt="" class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
                                {% endif %}
                        </div>
-                       {% if emission.categories %}
-                               <div class="categories smooth ellipsis">
-                               {% for category in emission.categories.all %}
-                                       {% if forloop.counter > 1 %} - {% endif %}<em><span class="inBlock icon-{{category|slugify}}"></span>{{category}}</em>
-                               {% endfor%}
+                       <div class="title">
+                               <h5>
+                                       {{ emission.title }}
+                               </h5>
+                               <div class="smooth metas">
+                               {% if emission.categories %}
+                                       <span class="categories">
+                                       {% for category in emission.categories.all %}
+                                               {% if forloop.counter > 1 %} - {% endif %}<span class="category">{{category}}</span>
+                                       {% endfor%}
+                                       </span>
+                               {% endif %}
                                </div>
-                       {% endif %}
-                       <h5 class="title ellipsis">     
-                               {{ emission.title }}
-                       </h5>
+                       </div>
                        {% if emission.subtitle %}
-                               <div class="description ellipsis">
+                               <div class="description">
                                        {{ emission.subtitle }}
                                </div>
                        {% elif emission.text %}
-                               <div class="description ellipsis">
+                               <div class="description">
                                        {{ emission.text|safe|striptags|truncatewords:20}}
                                </div>
                        {% endif %}