nav.html 2.78 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">
Simon Daron's avatar
Simon Daron committed
5
6
			<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
</div>
<div class="wrapper">
Simon Daron's avatar
Simon Daron committed
25
26
27
28
	{% if categories %}
		<nav id="gridNav" class="checkable">
			<ul class="by{{ categories.count }}">
			{% if class = "grid" %}
Simon Daron's avatar
rebase    
Simon Daron committed
29
				<li><button class="check icon-check-empty"  data-about="#Main" data-highlight=".nonstop"></li>
Simon Daron's avatar
Simon Daron committed
30
31
			{% elif  class = "emissions" %}
				<li><button class="check icon-check"  data-about="#Main" data-toggle=".nocat">?</button></li>
Simon Daron's avatar
Simon Daron committed
32
			{% endif %}
Simon Daron's avatar
Simon Daron committed
33
34
			{% for category in categories %}
				{% if class = "grid" %}
Simon Daron's avatar
rebase    
Simon Daron committed
35
					<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}"><span class="icon-{{category|slugify}}"></span>{{ category }}</button></li>
Simon Daron's avatar
Simon Daron committed
36
				{% else %}
Simon Daron's avatar
rebase    
Simon Daron committed
37
					<li><button class="check icon-check" data-about="#Main" data-toggle=".{{ category|slugify }}"><span class="icon-{{category|slugify}}"></span>{{ category }}</button></li>
Simon Daron's avatar
Simon Daron committed
38
39
40
				{% endif %}
			{% endfor %}
			</ul>
Simon Daron's avatar
Simon Daron committed
41
42
		</nav>
	{% endif %}
Simon Daron's avatar
Simon Daron committed
43
44
45
</div>
{% if emission %}
<div class="wrapper">
Simon Daron's avatar
Simon Daron committed
46
47
48
49
		<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
50
51
52
		{% if emission.categories %}
			<div class="categories">
			{% for category in emission.categories.all %}
Simon Daron's avatar
rebase    
Simon Daron committed
53
				{% if forloop.counter > 1 %} - {% endif %}<span class="icon-{{category|slugify}}"></span><span>{{category}}</span>
Simon Daron's avatar
Simon Daron committed
54
55
56
			{% endfor%}
			</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
57
		</header>
Simon Daron's avatar
Simon Daron committed
58
59
60
61
62
</div>
<div class="wrapper">
	{% if episodes %}
	<div class="wrapper half">
		<nav>
Simon Daron's avatar
Simon Daron committed
63
			<ul class="distributed by2">
Simon Daron's avatar
Simon Daron committed
64
				<li>
Simon Daron's avatar
Simon Daron committed
65
					<a class="{% if class != "episodes" %}active{% endif %}"  href="{% url 'emission-view' slug=emission.slug %}">En bref</a>
Simon Daron's avatar
Simon Daron committed
66
67
				</li>
				<li>
Simon Daron's avatar
Simon Daron committed
68
					<a class="{% if class = "episodes" %}active{% endif %}" href="{% url 'emissionEpisodes' slug=emission.slug %}">Archives ({{ episodes.count }})</a>
Simon Daron's avatar
Simon Daron committed
69

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

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