venissieux: move category picture on top of title (#27966)

This commit is contained in:
Frédéric Péters 2018-11-13 22:16:15 +01:00
parent dc823b6959
commit c714edd372
2 changed files with 22 additions and 0 deletions

View File

@ -156,6 +156,11 @@ div#section-une {
text-align: center;
color: $secondary-color;
font-size: 24px;
margin-top: 0;
}
picture {
text-align: center;
display: block;
}
}

View File

@ -0,0 +1,17 @@
{% extends "../../../../combo/wcs/forms_of_category.html" %}
{% load assets %}
{% block cell-header %}
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
{% if asset %}
<picture>
<img src="{% asset_url asset size="80x80" crop="center" %}" alt="">
</picture>
{% endif %}
<h2>{{ title }}</h2>
{% if description %}
<div class="intro">
{{ description|safe }}
</div>
{% endif %}
{% endblock %}