]> git.0d.be Git - panikweb.git/blobdiff - panikweb/templates/emissions/resume.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / emissions / resume.html
diff --git a/panikweb/templates/emissions/resume.html b/panikweb/templates/emissions/resume.html
new file mode 100644 (file)
index 0000000..df832fe
--- /dev/null
@@ -0,0 +1,39 @@
+{% 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 %}
+                                       {% thumbnail emission.image "60x60" crop="50% 25%" as im %}
+                                       <img alt="" width="60" height="60" src="{{im.url}}"/>
+                                       {% endthumbnail %}
+                               {% else %}
+                                       <img alt="" class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
+                               {% endif %}
+                       </div>
+                       <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>
+                       </div>
+                       {% if emission.subtitle %}
+                               <div class="description">
+                                       {{ emission.subtitle }}
+                               </div>
+                       {% elif emission.text %}
+                               <div class="description">
+                                       {{ emission.text|safe|striptags|truncatewords:20}}
+                               </div>
+                       {% endif %}
+               </a>
+       </div>
+</div>