resume.html 1.09 KB
Newer Older
fred's avatar
fred committed
1
{% load thumbnails staticfiles %}
2
<div class="emission emission-resume resume cf">
Simon Daron's avatar
Simon Daron committed
3
4
	<div class="{% if emission.archived %}archived{% endif %}">
		<a class="block" href="{% url 'emission-view' slug=emission.slug %}">
Simon Daron's avatar
Simon Daron committed
5
			<div class="logo left">
Simon Daron's avatar
Simon Daron committed
6
				{% if emission.image %}
fred's avatar
fred committed
7
					<img width="60" height="60" src="{{ emission.image|thumbnail:'60x60' }}"/>
Simon Daron's avatar
Simon Daron committed
8
				{% else %}
fred's avatar
fred committed
9
					<img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
Simon Daron's avatar
Simon Daron committed
10
11
				{% endif %}
			</div>
12
			<div class="title">
13
				<h5>
14
15
16
17
					{{ emission.title }}
				</h5>
				<div class="smooth metas">
				{% if emission.categories %}
fred's avatar
fred committed
18
					<span class="categories">
19
					{% for category in emission.categories.all %}
fred's avatar
fred committed
20
						{% if forloop.counter > 1 %} - {% endif %}<span class="category">{{category}}</span>
21
22
23
					{% endfor%}
					</span>
				{% endif %}
24
				</div>
25
			</div>
fred's avatar
fred committed
26
			{% if emission.subtitle %}
27
				<div class="description">
fred's avatar
fred committed
28
					{{ emission.subtitle }}
Simon Daron's avatar
Simon Daron committed
29
30
				</div>
			{% elif emission.text %}
31
				<div class="description">
Simon Daron's avatar
Simon Daron committed
32
33
34
35
36
37
					{{ emission.text|safe|striptags|truncatewords:20}}
				</div>
			{% endif %}
		</a>
	</div>
</div>