venissieux: move category picture on top of title (#27966)
This commit is contained in:
parent
dc823b6959
commit
c714edd372
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue