roll.html 706 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
		</li>
		{% for content in news %}
			<li class="{% if forloop.counter > 3 %}largeScreens{% endif %}">
9
				<a title="{{content.title|striptags|addslashes}}" class="block news relative" href="{% url 'news-view' slug=content.slug %}">					
Simon Daron's avatar
Simon Daron committed
10
11
					{% if content.image %}		
					<div class="absolute">
12
						<h5 class="title ellipsis">{{ content.datetime|date:"D m/M" }}</h5>
Simon Daron's avatar
Simon Daron committed
13
14
15
16
17
18
19
20
					</div>
					<img class="logo" src="{{ content.image|thumbnail:'240x320' }}"/>	
					{% endif %}				
				</a>
			</li>
		{% endfor %}
	</ul>
</div>