nav.html 2.71 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

<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>
				<span class="iconLabel">Emissions</span>
			</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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
		</header>
		{% if episodes %}
		<div class="wrapper half">
			<nav class="tabs" data-tab-about="#Emission-container">
				<ul class="distributed">
					<li>
						<button data-tab="#Emission-tabs-default" class="active" >
							<span class="iconLabel">En bref</span>
						</button>
					</li>
					<li>
						<button data-tab="#Emission-tabs-episodes">
							<span class="iconLabel">Episodes ({{ episodes.count }})</span>
						</button >
					</li>
				</ul>
				{% if episode %}
				<hr />
					<h4 class="active button padded " data-tab="#Emission-tabs-current">{{ episode.title }}</h4>
				{% endif %}
			</nav>
		</div>
		{% endif %}
	{% endif %}
</div>