Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
f57f3c03
Commit
f57f3c03
authored
Aug 27, 2013
by
Simon Daron
Browse files
Conditionnal comments for unused episode fields & logo
parent
8c80da9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/episodes/inline.html
View file @
f57f3c03
...
...
@@ -17,11 +17,11 @@
{{ episode.first_diffusion|date:"H:i" }}
</span>
</div>
{% if episode.image %}
<div
class=
"logo right"
>
{% if episode.image %}
<img
width=
"50"
height=
"50"
src=
"{{ episode.image|thumbnail:'50x50' }}"
/>
{% endif %}
</div>
{% endif %}
<div
class=
"content"
>
<a
class=
"block"
href=
"{{ episode.slug }}"
>
<h5
class=
"title ellipsis"
>
{{ episode.title }}
</h5>
...
...
panikweb_templates/templates/episodes/resume.html
View file @
f57f3c03
{% load
soundf
il
e
s %}
{% load
thumbna
ils %}
{% load paniktags %}
<div
class=
"episode resume episode-resume cf"
>
<div
class=
"date dateBloc"
>
...
...
@@ -24,9 +24,11 @@
<br /><button class="big symbol buy">C</button>
</div>
-->
{% if episode.image %}
<div
class=
"logo"
>
<img
src=
"http://placehold.it/
100
X
100"
/>
<img
width=
"100"
height=
"100"
src=
"{{ episode.image|thumbnail:'
100
x
100
' }}
"
/>
</div>
{% endif %}
<div
class=
"content"
>
<h5
class=
"title"
><a
href=
"{{ episode.slug }}"
>
{{ episode.title }}
</a></h5>
...
...
@@ -40,13 +42,13 @@
</article>
{% endif %}
<div
class=
"metas"
>
<!--
{% if episode.serie or episode.auteur or episode.redif %}
<dl
class=
"credits cf"
>
<dt>Serie</dt><dd>La musique</dd>
<dt>Auteur</dt><dd>Jean Dupont</dd>
<dt>Redif
f
usion</dt><dd>
Émission de JetFM</dd>
{% if episode.serie %}
<dt>
Serie
</dt><dd>
{{ serie }}
</dd>
{% endif %}
{% if episode.auteur %}
<dt>
Auteur
</dt><dd>
{{ auteur }}
</dd>
{% endif %}
{% if episode.redif %}
<dt>
Redifusion
</dt><dd>
{{ redif }}
</dd>
{% endif %}
</dl>
-->
{% endif %}
{% if episode.tagList %}
<ul
class=
"custom inline"
>
{% for tag in episode.tagList %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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