Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
9da4f16e
Commit
9da4f16e
authored
Aug 28, 2013
by
Simon Daron
Browse files
Adding nav for selected episode
parent
c43765c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/emissions/emission_detail.html
View file @
9da4f16e
...
...
@@ -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 %}
panikweb_templates/templates/emissions/nav.html
View file @
9da4f16e
...
...
@@ -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 %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment