braine-l-alleud: add placeholder image for newsitems
This commit is contained in:
parent
91587eab05
commit
5b7920d9fb
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue