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
Simon Daron
panikweb
Commits
af4b7056
Commit
af4b7056
authored
Sep 21, 2013
by
Simon Daron
Browse files
Fallback on emission images for episodes
parent
2901f656
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/episodes/inline.html
View file @
af4b7056
...
...
@@ -5,6 +5,8 @@
<div
class=
"logo"
>
{% if episode.image %}
<img
src=
"{{ episode.image|thumbnail:'60x60' }}"
/>
{% elif episode.emission.image %}
<img
src=
"{{ episode.emission.image|thumbnail:'60x60' }}"
/>
{% else %}
<img
class=
"smooth"
style=
"width:60px;"
src=
"{% static "
img
/
episode.png
"
%}"
/>
{% endif %}
...
...
panikweb_templates/templates/episodes/resume.html
View file @
af4b7056
...
...
@@ -25,10 +25,14 @@
<div
class=
"logo"
>
{% if model = "inline" and episode.image %}
<img
src=
"{{ episode.image|thumbnail:'60x60' }}"
/>
{% elif model = "inline" and emission.image %}
<img
src=
"{{ episode.emission.image|thumbnail:'60x60' }}"
/>
{% elif model = "inline" %}
<img
class=
"smooth"
style=
"width:60px;"
src=
"{% static "
img
/
episode.png
"
%}"
/>
{% elif episode.image %}
<img
src=
"{{ episode.image|thumbnail:'150x150' }}"
/>
{% elif emission.image %}
<img
src=
"{{ episode.emission.image|thumbnail:'150x150' }}"
/>
{% else %}
<img
class=
"smooth"
style=
"width:150px;"
src=
"{% static "
img
/
episode.png
"
%}"
/>
{% endif %}
...
...
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