inline.html 777 Bytes
Newer Older
Simon Daron's avatar
Simon Daron committed
1
{% load thumbnails %}
Simon Daron's avatar
Simon Daron committed
2
<div class="emission emission-inline inline">
Simon Daron's avatar
Simon Daron committed
3
	<div class="{% if emission.archived %}archived{% endif %}">
Simon Daron's avatar
Simon Daron committed
4
		<a class="block" href="{% url 'emission-view' slug=emission.slug %}">
Simon Daron's avatar
Simon Daron committed
5
6
7
8
9
10
11
			<div class="logo left">
				{% if emission.image %}
					<img width="50" height="50" src="{{ emission.image|thumbnail:'50x50' }}"/>
				{% else %}
					<img src="http://placehold.it/50x50">
				{% endif %}
			</div>
12
			<h5 class="title ellipsis">{{ emission.title }}</h5>
13
			{% if emission.description %}
14
				<div class="description ellipsis">
15
16
17
					{{ emission.description|safe|striptags }}
				</div>
			{% elif emission.text %}
18
				<div class="description ellipsis">
19
20
					{{ emission.text|safe|striptags|truncatewords:20}}
				</div>
21
22
23
24
			{% endif %}
		</a>
	</div>
</div>