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
0abd099a
Commit
0abd099a
authored
Aug 15, 2013
by
Simon Daron
Browse files
Preparing emission template to receveive episodes
parent
2566b497
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
0abd099a
...
...
@@ -3,7 +3,7 @@ import math
from
django.views.generic.base
import
TemplateView
from
emissions.models
import
Emission
,
Schedule
from
emissions.models
import
Emission
,
Episode
,
Schedule
class
ProgramView
(
TemplateView
):
template_name
=
'program.html'
...
...
panikweb_templates/templates/emissions/detail.html
View file @
0abd099a
...
...
@@ -4,9 +4,8 @@
<ul>
<!--<li><a>< précédent</a></li>
<li><a>suivant ></a></li>-->
<li><a
href=
"#"
>
dernier épisode
</a></li>
<li><a
href=
"#"
>
archives
</a></li>
<li><a
href=
"#"
class=
"active"
>
à propos de l'émission
</a></li>
<li><a
href=
"#"
>
épisodes
</a></li>
<li><a
href=
"#"
class=
"active"
>
à propos
</a></li>
</ul>
</nav>
<header
class=
"mainHeader"
>
...
...
@@ -41,5 +40,17 @@
{{ emission.text|safe }}
</article>
{% endif %}
<h3>
Épisodes
</h3>
<ul
class=
"episode-list"
>
{% for episode in episodes %}
<li>
{{ episode.first_diffusion|date:"d E o H:i"|lower }}
<br/>
<a
href=
"{{ episode.slug }}/"
>
{{ episode.title }}
</a>
{% if episode.has_sound %}
<span
class=
"icon-music"
/>
{%endif%}
</li>
{% endfor %}
</ul>
</div>
Write
Preview
Markdown
is supported
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