roll.html 641 Bytes
Newer Older
fred's avatar
fred committed
1
{% load thumbnails %}{% load i18n %}
Simon Daron's avatar
Simon Daron committed
2
3
4
<div class="newsRoll center wrapper">
	<ul class="custom distributed">
		<li class="title">
fred's avatar
fred committed
5
			<h4 class="label vertical">{% trans 'News' %}</h4>
Simon Daron's avatar
Simon Daron committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
		</li>
		{% for content in news %}
			<li class="{% if forloop.counter > 3 %}largeScreens{% endif %}">
				<a class="block news relative" href="{% url 'news-view' slug=content.slug %}">					
					{% if content.image %}		
					<div class="absolute">
						<h5 class="title ellipsis">{{content.title}}</h5>
					</div>
					<img class="logo" src="{{ content.image|thumbnail:'240x320' }}"/>	
					{% endif %}				
				</a>
			</li>
		{% endfor %}
	</ul>
</div>