roll.html 818 Bytes
Newer Older
fred's avatar
fred committed
1
{% load thumbnails %}{% load i18n %}
Simon Daron's avatar
Simon Daron committed
2 3
<div id="newsRoll">
	<div class="newsRoll center wrapper">
4
		<ul class="custom">
Simon Daron's avatar
Simon Daron committed
5
			{% for content in news %}
6
				<li class="{% if forloop.counter == 1 %}first{% endif %}">
fred's avatar
fred committed
7
					<a class="block news relative" href="{% url 'newsitem-view' slug=content.slug %}">
8 9 10 11 12 13 14

				{% if forloop.counter == 1 %}
						<img class="logo" src="{{ content.image|thumbnail:'640x480' }}"/>	
				{% else %}
						<img class="logo" src="{{ content.image|thumbnail:'320x480' }}"/>	
				{% endif %}

fred's avatar
fred committed
15
						{% if content.category %}
Simon Daron's avatar
Simon Daron committed
16
							<div class="labels absolute">
fred's avatar
fred committed
17
								<span class="item inBlock">{{ content.category.title }}</span>
Simon Daron's avatar
Simon Daron committed
18
							</div>	
fred's avatar
fred committed
19
						{% endif %}
Simon Daron's avatar
Simon Daron committed
20

21
						<span class="title inBlock"><span>{{ content.title }}</span></span>
Simon Daron's avatar
Simon Daron committed
22 23 24 25 26
					</a>
				</li>
			{% endfor %}
		</ul>
	</div>
Simon Daron's avatar
Simon Daron committed
27
</div>