8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Do not display <img> on home page services when no image

This commit is contained in:
Maël Kervella 2018-04-15 18:16:50 +00:00
parent 68830f2e64
commit a639e6a809

View file

@ -37,7 +37,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% for service in service_list %}
<div class="col-12">
<div class="thumbnail">
<a href="{{ service.url }}"><img src="{% if service.image %}{{ service.image.url }}{% endif %}" alt="{{ service.name }}"></a>
{% if service.image %}
<a href="{{ service.url }}"><img src="{{ service.image.url }}" alt="{{ service.name }}"></a>
{% endif %}
<div class="caption">
<h3>{{ service.name }}</h3>
<p>{{ service.description }}</p>