braine-l-alleud: add placeholder image for newsitems

This commit is contained in:
Frédéric Péters 2021-10-19 09:23:45 +02:00
parent 91587eab05
commit 5b7920d9fb
2 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,4 +1,4 @@
{% load dashboard thumbnail %}
{% load dashboard static thumbnail %}
{% if not in_dashboard %}
<div class="dashboard-settings">
<div class="dashboard-meta">
@ -43,6 +43,9 @@
{% thumbnail actu.image.download "160x160" crop="50% 25%" as im %}
<img src="{{ im.url }}" alt="" />
{% endthumbnail %}
{% if not actu.image %}
<img src="{{site_base}}{% static "" %}{{css_variant}}/placeholder-logo-bla.jpeg" alt="" height="160" width="160">
{% endif %}
<div>
<h3><a href="{{actu.PLONE_id}}">{{actu.title}}</a></h3>
<h4>{{json.meta.label}} - {{ actu.created|slice:19|parse_date|date:"d/m/Y" }}</h4>