Commit 42545d1e authored by fred's avatar fred
Browse files

remove usage of obsolete |image_file filter

parent f7fe3a27
......@@ -3,19 +3,13 @@
<div class="topik inline cf">
<a class="block cf topik-link" href="{{page.get_online_url}}">
<div class="logo">
{% with page|image_file as logo %}
{% if logo %}
{% thumbnail logo "60x60" crop="50% 25%" as im %}
<img width="60" height="60" src="{{im.url}}"/>
{% endthumbnail %}
{% elif page.picture %}
{% if page.picture %}
{% thumbnail page.picture "60x60" crop="50% 25%" as im %}
<img width="60" height="60" src="{{im.url}}"/>
{% endthumbnail %}
{% else %}
<img src="/static/img/sound.png" width="60" height="60">
{% endif %}
{% endwith %}
</div>
<div class="content">
<div class="title">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment