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
2565bdf0
Commit
2565bdf0
authored
Aug 29, 2013
by
Simon Daron
Browse files
Setting inline view for emission
parent
4e8110d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/emissions.html
View file @
2565bdf0
...
...
@@ -9,7 +9,7 @@
<div
class=
"emissions padded"
>
<ul
class=
"custom list columns padded"
>
{% for emission in emissions %}
<li>
{% emission_
resum
e %}
</li>
<li>
{% emission_
inlin
e %}
</li>
{% endfor %}
</ul>
</div>
...
...
panikweb_templates/templates/emissions/inline.html
View file @
2565bdf0
<div
class=
"emission emission-inline inline"
>
<div
class=
" {% if emission.archived %}archived{% endif %}"
>
{% if emission.date %}
<div
class=
"date cf"
>
<span
class=
"day"
>
XX
</span>
<span
class=
"day-number"
>
00
</span>
<span
class=
"year"
>
0000
</span>
</div>
{% endif %}
{% if controls %}
<div
class=
"controls todo"
>
<button
class=
"control symbol play"
>
A
</button>
<button
class=
"control symbol add"
>
B
</button>
</div>
{% endif %}
<a
class=
"block"
href=
"{% url 'emission-view' slug=emission.slug %}"
>
<div
class=
"logo left"
>
{% if emission.image %}
<img
width=
"50"
height=
"50"
src=
"{{ emission.image|thumbnail:'50x50' }}"
/>
{% else %}
<img
src=
"http://placehold.it/50x50"
>
{% endif %}
</div>
<h5
class=
"title ellipsis"
>
{{ emission.title }}
</h5>
{% if emission.description %}
<div
class=
"description ellipsis"
>
...
...
panikweb_templates/templates/emissions/resume.html
View file @
2565bdf0
{% load thumbnails %}
<div
class=
"emission emission-resume resume"
>
<div
class=
"{% if emission.archived %}archived{% endif %}"
>
{% if emission.date %}
<div
class=
"date cf"
>
<span
class=
"day"
>
XX
</span>
<span
class=
"day-number"
>
00
</span>
<span
class=
"year"
>
0000
</span>
</div>
{% endif %}
<a
class=
"block"
href=
"{% url 'emission-view' slug=emission.slug %}"
>
{% if emission.image %}
<div
class=
"logo left"
>
{% if
model = "inline"
%}
<img
width=
"50"
height=
"50"
src=
"{{ emissionimage|thumbnail:'50x50' }}"
/>
{% if
emission.image
%}
<img
width=
"50"
height=
"50"
src=
"{{ emission
.
image|thumbnail:'50x50' }}"
/>
{% else %}
<img
src=
"http://placehold.it/50x50"
>
<img
src=
"http://placehold.it/50x50"
>
{% endif %}
</div>
{% endif %}
<h5
class=
"title ellipsis"
>
{{ emission.title }}
</h5>
{% if emission.description %}
<div
class=
"description ellipsis"
>
...
...
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