]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/emissions/resume.html
misc: run manage.py with python3
[panikweb.git] / panikweb_templates / templates / emissions / resume.html
index 57a3fd40a81b341c26a5a480ebfe22d79f5b350f..df832feb44b3b13cc3a3a53d070b353e633c46e8 100644 (file)
@@ -1,35 +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>
-                       <div class="title ellipsis">
-                               <h5 class="inBlock">    
+                       <div class="title">
+                               <h5>
                                        {{ emission.title }}
                                </h5>
                                <div class="smooth metas">
                                {% if emission.categories %}
-                                       <span class="categories ellipsis">
+                                       <span class="categories">
                                        {% for category in emission.categories.all %}
-                                               {% if forloop.counter > 1 %} - {% endif %}<span class="category"><span class="inBlock icon-{{category|slugify}}">&nbsp;</span>{{category}}</span>
+                                               {% if forloop.counter > 1 %} - {% endif %}<span class="category">{{category}}</span>
                                        {% endfor%}
                                        </span>
                                {% endif %}
                                </div>
                        </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 %}