nav.html 2.39 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
2
<nav>
	<ul class="inline">
Simon Daron's avatar
Simon Daron committed
3
		<li><a href="{% url 'emissions' %}" class="{% if class != "program" and class != "grid" and class != "archives" %}active{% endif %}">
Simon Daron's avatar
Simon Daron committed
4
			<span class="icon-microphone" ></span>
Simon Daron's avatar
Simon Daron committed
5
6
			<span class="iconLabel">Emissions</span>
		</a></li>
Simon Daron's avatar
Simon Daron committed
7
		<li><a href="{% url 'program' %}" class="{% if class = "program" %}active{% endif %}">
Simon Daron's avatar
Simon Daron committed
8
9
10
			<span class="icon-calendar" ></span>
			<span class="iconLabel">Cette semaine</span>
		</a></li>
Simon Daron's avatar
Simon Daron committed
11
		<li><a href="{% url 'grid' %}" class="{% if class = "grid" %}active{% endif %}">
Simon Daron's avatar
Simon Daron committed
12
13
14
			<span class="icon-th-large" ></span>
			<span class="iconLabel">La grille</span>
		</a></li>
Simon Daron's avatar
Simon Daron committed
15
16
17
18
		<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
19
20
	</ul>
</nav>
Simon Daron's avatar
Simon Daron committed
21
{% if categories %}
Simon Daron's avatar
Simon Daron committed
22
	<nav id="gridNav" class="checkable">
Simon Daron's avatar
Simon Daron committed
23
24
25
26
		<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" %}
Simon Daron's avatar
Simon Daron committed
27
		        <li><button class="check icon-check"  data-about="#Main" data-toggle=".nocat">?</button></li>
Simon Daron's avatar
Simon Daron committed
28
		{% endif %}
Simon Daron's avatar
Simon Daron committed
29
		{% for category in categories %}
Simon Daron's avatar
Simon Daron committed
30
31
32
			{% if class = "grid" %}
			        <li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}">{{ category }}</button></li>
			{% else %}
Simon Daron's avatar
Simon Daron committed
33
			        <li><button class="check icon-check" data-about="#Main" data-toggle=".{{ category|slugify }}">{{ category }}</button></li>
Simon Daron's avatar
Simon Daron committed
34
			{% endif %}
Simon Daron's avatar
Simon Daron committed
35
		{% endfor %}
Simon Daron's avatar
Simon Daron committed
36
37
		</ul>
	</nav>
Simon Daron's avatar
Simon Daron committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% endif %}
{% 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>
	</header>
	{% if episodes %}
	<div class="wrapper half">
		<nav class="tabs" data-tab-about="#Emission-container">
			<ul class="distributed">
				<li>
Simon Daron's avatar
Simon Daron committed
52
					<button data-tab="#Emission-tabs-default" class="active" >
Simon Daron's avatar
Simon Daron committed
53
						<span class="iconLabel">En bref</span>
Simon Daron's avatar
Simon Daron committed
54
55
56
57
					</button>
				</li>
				<li>
					<button data-tab="#Emission-tabs-episodes">
Simon Daron's avatar
Simon Daron committed
58
						<span class="iconLabel">Episodes</span>
Simon Daron's avatar
Simon Daron committed
59
60
61
62
63
					</button >
				</li>
			</ul>
			{% if episode %}
			<hr />
Simon Daron's avatar
Simon Daron committed
64
				<h4 class="active button padded " data-tab="#Emission-tabs-current">{{ episode.title }}</h4>
Simon Daron's avatar
Simon Daron committed
65
66
67
68
			{% endif %}
		</nav>
	</div>
	{% endif %}
69
{% endif %}