home.html 1.17 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1 2
{% extends "base.html" %}
{% load thumbnails %}
Simon Daron's avatar
Simon Daron committed
3
{% load paniktags %}
4
{% load staticfiles %}
Simon Daron's avatar
Simon Daron committed
5
{% block bodyID %}Home{% endblock %}
Simon Daron's avatar
Simon Daron committed
6 7
{% block title %}Home{% endblock %}
{% block nav %}
Simon Daron's avatar
Simon Daron committed
8
	{% newsroll %}
Simon Daron's avatar
Simon Daron committed
9
{% endblock %}
Simon Daron's avatar
Simon Daron committed
10
{% block main %}
Simon Daron's avatar
Simon Daron committed
11 12 13 14
	<div class="padded">
		<div class="wrapper">
			<h2>Cette semaine sur Panik</h2>
			{% weekview %}
15 16 17 18 19 20 21 22
			<h2>Ecouter</h2>
			<ul class="custom columns list">
			{% for episode in episodes %}
				<li class="item {% if episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
					{% episode_resume model="inline" klass="standalone"%}			
				</li>
			{% endfor %}
			</ul>
Simon Daron's avatar
Simon Daron committed
23
		</div>
Simon Daron's avatar
Simon Daron committed
24
	</div>
Simon Daron's avatar
Simon Daron committed
25 26 27
{% endblock %}
{% block links %}
	<div class="wrapper padded">	
fred's avatar
fred committed
28
		<h2>Émissions</h2>
Simon Daron's avatar
Simon Daron committed
29 30
		<ul class="custom list columns padded">
		{% for emission in emissions %}
31 32 33 34 35 36 37
			<li class="item ellipsis">
				<a href="{% url 'emission-view' slug=emission.slug %}">
					{% if emission.image %}
						<img style="float:right;margin-left:1em;" src="{{ emission.image|thumbnail:'20x20' }}"/>
					{% endif %}
					{{ emission.title }}
				</a>
Simon Daron's avatar
Simon Daron committed
38 39 40 41
			</li>
		{% endfor %}
		</ul>
	</div>
fred's avatar
fred committed
42
{% endblock %}