nav.html 2.44 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
2
3
4
5
6

<div class="wrapper">
	<nav>
		<ul class="inline">
			<li><a href="{% url 'emissions' %}" class="{% if class != "program" and class != "grid" and class != "archives" %}active{% endif %}">
				<span class="icon-microphone" ></span>
fred's avatar
fred committed
7
				<span class="iconLabel">Émissions</span>
Simon Daron's avatar
Simon Daron committed
8
9
10
11
12
13
14
15
16
17
18
19
20
			</a></li>
			<li><a href="{% url 'program' %}" class="{% if class = "program" %}active{% endif %}">
				<span class="icon-calendar" ></span>
				<span class="iconLabel">Cette semaine</span>
			</a></li>
			<li><a href="{% url 'grid' %}" class="{% if class = "grid" %}active{% endif %}">
				<span class="icon-th-large" ></span>
				<span class="iconLabel">La grille</span>
			</a></li>
			<li><a href="{% url 'archives' %}" class="{% if class = "archives" %}active{% endif %}">
				<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
25
26
27
28
29
	{% if categories %}
		<nav id="gridNav" class="checkable">
			<ul class="by{{ categories.count }}">
			{% if class = "grid" %}
				<li><button class="check icon-check-empty"  data-about="#Main" data-highlight=".nonstop">Non-stop</button></li>
			{% elif  class = "emissions" %}
				<li><button class="check icon-check"  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
33
34
35
36
37
38
			{% for category in categories %}
				{% if class = "grid" %}
					<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}">{{ category }}</button></li>
				{% else %}
					<li><button class="check icon-check" data-about="#Main" data-toggle=".{{ category|slugify }}">{{ category }}</button></li>
				{% endif %}
			{% endfor %}
			</ul>
Simon Daron's avatar
Simon Daron committed
39
40
		</nav>
	{% endif %}
Simon Daron's avatar
Simon Daron committed
41
42
43
44
45
46
47
	{% if class = "week" %}
	{% endif %}
	{% if emission %}
		<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
51
52
53
54
		{% if emission.categories %}
			<div class="categories">
			{% for category in emission.categories.all %}
				{% if forloop.counter > 1 %} - {% endif %}<span class="">{{category}}</span>
			{% endfor%}
			</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
55
56
57
		</header>
		{% if episodes %}
		<div class="wrapper half">
58
			<nav>
Simon Daron's avatar
Simon Daron committed
59
60
				<ul class="distributed">
					<li>
61
						<a href="{% url 'emission-view' slug=emission.slug %}">En bref</a>
Simon Daron's avatar
Simon Daron committed
62
63
					</li>
					<li>
Simon Daron's avatar
Simon Daron committed
64
65
						<a href="{% url 'emissionEpisodes' slug=emission.slug %}">Épisodes ({{ episodes.count }})</a>

Simon Daron's avatar
Simon Daron committed
66
67
68
69
70
					</li>
				</ul>
			</nav>
		</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
71
		<!--
Simon Daron's avatar
Simon Daron committed
72
		-->
Simon Daron's avatar
Simon Daron committed
73
74
	{% endif %}
</div>