roll.html 612 Bytes
Newer Older
Simon Daron's avatar
Simon Daron committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% load thumbnails %}
<div class="newsRoll center wrapper">
	<ul class="custom distributed">
		<li class="title">
			<h4 class="label vertical">News</h4>
		</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>