nav.html 1.86 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1 2
<nav>
	<ul class="inline">
Simon Daron's avatar
Simon Daron committed
3 4 5 6 7 8 9 10 11 12 13 14
		<li><a href="{% url 'emissions' %}">
			<span class="icon-bullhorn" ></span>
			<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 18 19 20 21 22 23 24 25 26 27 28 29
{% if class = "grid" %}
	<nav id="gridNav" class="checkable">
		<ul class="distributed by{{ categories.count }}">
		        <li><button onclick="
					$('#grid *').removeClass('highlighted');
					$('#grid .nonstop').addClass('highlighted');
				">Non-stop</button></li>
		{% for category in categories %}
		        <li><button onclick="
					$('#grid *').removeClass('highlighted');
					$('#grid .{{ category|slugify }}').addClass('highlighted');
				">{{ category }}</button></li>
		{% endfor %}
Simon Daron's avatar
Simon Daron committed
30 31
		</ul>
	</nav>
Simon Daron's avatar
Simon Daron committed
32 33 34 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
{% 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 %}
69
{% endif %}