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