nav.html 2.26 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' %}">
Simon Daron's avatar
Simon Daron committed
4
			<span class="icon-microphone" ></span>
Simon Daron's avatar
Simon Daron committed
5
6
7
8
9
10
11
12
13
14
			<span class="iconLabel">Emissions</span>
		</a></li>
		<li><a href="{% url 'program' %}">
			<span class="icon-calendar" ></span>
			<span class="iconLabel">Cette semaine</span>
		</a></li>
		<li><a href="{% url 'grid' %}">
			<span class="icon-th-large" ></span>
			<span class="iconLabel">La grille</span>
		</a></li>
Simon Daron's avatar
Simon Daron committed
15
16
	</ul>
</nav>
Simon Daron's avatar
Simon Daron committed
17
{% if categories %}
Simon Daron's avatar
Simon Daron committed
18
	<nav id="gridNav" class="checkable">
Simon Daron's avatar
Simon Daron committed
19
20
21
22
23
24
25
		<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-highlight=".nocat">?</button></li>
		        <li><button class="check icon-check-empty" data-about="#Main" data-highlight=".archived">Archives</button></li>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
26
		{% for category in categories %}
Simon Daron's avatar
Simon Daron committed
27
28
29
30
31
			{% 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-highlight=".{{ category|slugify }}">{{ category }}</button></li>
			{% endif %}
Simon Daron's avatar
Simon Daron committed
32
		{% endfor %}
Simon Daron's avatar
Simon Daron committed
33
34
		</ul>
	</nav>
Simon Daron's avatar
Simon Daron committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{% 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>
					<button data-tab="#Emission-tabs-last" >
						<span class="iconLabel">Dernier épisode</span>
					</button>
				</li>
				<li>
					<button data-tab="#Emission-tabs-episodes">
						<span class="iconLabel">Archives</span>
					</button >
				</li>
				<li>
					<button data-tab="#Emission-tabs-detail" >
						<span class="iconLabel">A propos</span>
					</button>
				</li>
			</ul>
			{% if episode %}
			<hr />
				<h5 class="active button padded " data-tab="#Emission-tabs-current">{{ episode.title }}</h5>
			{% endif %}
		</nav>
	</div>
	{% endif %}
71
{% endif %}