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
1b94b4a7
Commit
1b94b4a7
authored
Jul 09, 2016
by
fred
Browse files
templates: include topik texts on topik page
parent
c4a8e13d
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/css/specifics.css
View file @
1b94b4a7
...
...
@@ -1731,6 +1731,8 @@ div.topikcellcontent a {
display
:
inline-block
;
text-align
:
left
;
width
:
50%
;
box-sizing
:
border-box
;
padding-right
:
2em
;
float
:
left
;
}
...
...
panikweb_templates/templates/panikombo/topik-cell.html
View file @
1b94b4a7
{% load thumbnail %}
{% if cell.topik %}
<div
class=
"topikcellcontent topik-{{cell.slug}}"
>
<a
href=
"{{cell.topik.page.get_online_url}}"
>
<a
class=
"block cf"
href=
"{{cell.topik.page.get_online_url}}"
>
<span
class=
"logo"
>
{% if cell.slug == "large" %}
{% thumbnail cell.topik.image "480x320" crop="50% 25%" as im %}
<div
class=
"logo"
>
<img
class=
"normal"
src=
"{{im.url}}"
/>
</div>
{% endthumbnail %}
{% else %}
{% thumbnail cell.topik.image "240x160" crop="50% 25%" as im %}
{% thumbnail cell.topik.image "480x320" crop="50% 25%" as im %}
<div
class=
"logo"
>
<img
class=
"normal"
src=
"{{im.url}}"
/>
</div>
{% endthumbnail %}
{% endif %}
</span>
<div>
<h2>
{{cell.topik.page.title}}
</h2>
{% if cell.slug == "large" %}
{{cell.text|safe}}
<h2>
{{cell.topik.page.title}}
</h2>
{% else %}
<h5>
{{cell.topik.page.title}}
</h5>
{% endif %}
<div
class=
"description"
>
{{cell.text|safe}}
</div>
</div>
</a>
</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