nav.html 2.74 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
2
3

<div class="wrapper">
	<nav>
Simon Daron's avatar
Simon Daron committed
4
		<ul class="inline padded">
5
6
7
			<li><a href="{% url 'grid' %}" class="{% if class = "grid" %}active{% endif %}">
				<span class="icon-th-large" ></span>
				<span class="iconLabel">La grille</span>
Simon Daron's avatar
Simon Daron committed
8
9
10
			</a></li>
			<li><a href="{% url 'program' %}" class="{% if class = "program" %}active{% endif %}">
				<span class="icon-calendar" ></span>
11
				<span class="iconLabel">Par semaine</span>
Simon Daron's avatar
Simon Daron committed
12
			</a></li>
13
14
15
			<li><a href="{% url 'emissions' %}" class="{% if class != "program" and class != "grid" and class != "archives" %}active{% endif %}">
				<span class="icon-microphone" ></span>
				<span class="iconLabel">Émissions</span>
Simon Daron's avatar
Simon Daron committed
16
			</a></li>
17
			<li><a href="{% url 'emissionsArchives' %}" class="{% if class = "archives" %}active{% endif %}">
Simon Daron's avatar
Simon Daron committed
18
19
20
				<span class="icon-archive" ></span>
				<span class="iconLabel">Archives</span>
			</a></li>
Simon Daron's avatar
Simon Daron committed
21
22
		</ul>
	</nav>
Simon Daron's avatar
Simon Daron committed
23
24
</div>
<div class="wrapper">
Simon Daron's avatar
Simon Daron committed
25
26
27
	{% if categories %}
		<nav id="gridNav" class="checkable">
			<ul class="by{{ categories.count }}">
28
			{% if  class = "emissions" or class = "archives" %}
29
				<li><button class="check icon-check-empty"  data-about="#Main" data-toggle=".nocat">?</button></li>
Simon Daron's avatar
Simon Daron committed
30
			{% endif %}
Simon Daron's avatar
Simon Daron committed
31
32
			{% for category in categories %}
				{% if class = "grid" %}
33
					<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}">{{ category }}&nbsp;<span class="icon-{{category|slugify}}"></span></button></li>
Simon Daron's avatar
Simon Daron committed
34
				{% else %}
35
					<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".{{ category|slugify }}">{{ category }}&nbsp;<span class="icon-{{category|slugify}}"></span></button></li>
Simon Daron's avatar
Simon Daron committed
36
37
38
				{% endif %}
			{% endfor %}
			</ul>
Simon Daron's avatar
Simon Daron committed
39
40
		</nav>
	{% endif %}
Simon Daron's avatar
Simon Daron committed
41
42
43
</div>
{% if emission %}
<div class="wrapper">
Simon Daron's avatar
Simon Daron committed
44
45
46
47
		<header class="mainHeader">
			<h2 class="squashed title">
				<a href="{% url 'emission-view' slug=emission.slug %}">{{ emission.title }}</a>
			</h2>
Simon Daron's avatar
Simon Daron committed
48
49
50
		{% if emission.categories %}
			<div class="categories">
			{% for category in emission.categories.all %}
51
				<a href="{% url 'emissions' %}?q={{category.slug}}"><span class="icon-{{category|slugify}}"></span>&nbsp;<span>{{category}}</span></a>
Simon Daron's avatar
Simon Daron committed
52
53
54
			{% endfor%}
			</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
55
		</header>
Simon Daron's avatar
Simon Daron committed
56
57
</div>
<div class="wrapper">
58
	{% if episodes.exists %}
Simon Daron's avatar
Simon Daron committed
59
60
	<div class="wrapper half">
		<nav>
Simon Daron's avatar
Simon Daron committed
61
			<ul class="distributed by2">
Simon Daron's avatar
Simon Daron committed
62
				<li>
Simon Daron's avatar
Simon Daron committed
63
					<a class="{% if class != "episodes" %}active{% endif %}"  href="{% url 'emission-view' slug=emission.slug %}">En bref</a>
Simon Daron's avatar
Simon Daron committed
64
65
				</li>
				<li>
Simon Daron's avatar
Simon Daron committed
66
					<a class="{% if class = "episodes" %}active{% endif %}" href="{% url 'emissionEpisodes' slug=emission.slug %}">Archives ({{ episodes.count }})</a>
Simon Daron's avatar
Simon Daron committed
67

Simon Daron's avatar
Simon Daron committed
68
69
70
71
72
73
74
75
				</li>
			</ul>
		</nav>
	</div>
	{% endif %}
	<!--
	{% if episode %}
		<h4 class="active title">{{ episode.title }}</h4>
Simon Daron's avatar
Simon Daron committed
76
	{% endif %}
Simon Daron's avatar
Simon Daron committed
77
	-->
Simon Daron's avatar
Simon Daron committed
78
</div>
Simon Daron's avatar
Simon Daron committed
79

Simon Daron's avatar
Simon Daron committed
80
{% endif %}