8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +00:00

Fix no img file

This commit is contained in:
Gabriel Detraz 2018-04-15 19:42:45 +02:00 committed by root
parent 98eae95632
commit 68830f2e64

View file

@ -37,7 +37,7 @@ 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="{{ service.image.url }}" alt="{{ service.name }}"></a>
<a href="{{ service.url }}"><img src="{% if service.image %}{{ service.image.url }}{% endif %}" alt="{{ service.name }}"></a>
<div class="caption">
<h3>{{ service.name }}</h3>
<p>{{ service.description }}</p>