Commit 9da4f16e authored by Simon Daron's avatar Simon Daron
Browse files

Adding nav for selected episode

parent c43765c1
......@@ -7,6 +7,11 @@
{% block main %}
<div class="wrapper {% if episodes %}sided{% else %}classic{% endif %}">
<div id="Emission-container" class="emission padded">
{% if episode %}
<div data-tabbed="true" id="Emission-tabs-current" class="episodes">
{% episode_resume date="daytime" %}
</div>
{% endif %}
<div data-tabbed="true" id="Emission-tabs-detail">
{% emission_detail %}
</div>
......@@ -35,5 +40,17 @@
</div>
{% endblock %}
{% block links %}
<div class="wrapper padded">
<h2>Emissions</h2>
<ul class="custom list columns padded">
{% for emission in emissions %}
<li class="item">
<a href="{% url 'emission-view' slug=emission.slug %}">{{ emission.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
{% block pageend %}
{% endblock %}
......@@ -9,14 +9,16 @@
</li>
</ul>
</nav>
<header class="mainHeader">
<h2 class="squashed title">
<a href="{% url 'emission-view' slug=emission.slug %}">{{ emission.title }}</a>
</h2>
</header>
<header class="mainHeader">
<h2 class="squashed title">
<a href="{% url 'emission-view' slug=emission.slug %}">{{ emission.title }}</a>
</h2>
</header>
{% if episodes %}
<nav class="wrapper">
<ul class="distributed tabs" data-tab-about="#Emission-container">
<nav class="wrapper tabs" data-tab-about="#Emission-container">
<ul class="distributed">
<li>
<button data-tab="#Emission-tabs-last" >
<span class="iconLabel">Dernier épisode</span>
......@@ -33,5 +35,11 @@
</button>
</li>
</ul>
{% if episode %}
<hr />
<header class="active button padded " data-tab="#Emission-tabs-current">
<h3 class="squashed title">{{ episode.title }}</h3>
</header>
{% endif %}
</nav>
{% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment