feat(template): add image and name clickable as asked in #18 (close #18)

This commit is contained in:
Romain J 2020-11-05 09:30:24 +01:00
parent 9945101e1e
commit eeaaa8a1cc

View file

@ -29,15 +29,17 @@
<div class="uk-margin"> <div class="uk-margin">
<div class="uk-card uk-card-secondary"> <div class="uk-card uk-card-secondary">
<div class="uk-card-media-top"> <div class="uk-card-media-top">
<a href="https://{{ service.domain }}" target="_blank">
<img src="{{ service.photo.url }}" loading="lazy" alt="{{ service.name }}"> <img src="{{ service.photo.url }}" loading="lazy" alt="{{ service.name }}">
</a>
</div> </div>
<div class="uk-card-body"> <div class="uk-card-body">
<h3 class="uk-card-title"> <h3 class="uk-card-title">
{{ service.name }} <a href="https://{{ service.domain }}"target="_blank">{{ service.name }}</a>
<code>{{ service.domain }}</code> <code>{{ service.domain }}</code>
</h3> </h3>
<p>{% get_current_language as LANGUAGE_CODE %}{% if LANGUAGE_CODE == 'en' and service.description_en != None %}{{ service.description_en }}{% else %}{{ service.description }}{% endif %}</p> <p>{% get_current_language as LANGUAGE_CODE %}{% if LANGUAGE_CODE == 'en' and service.description_en != None %}{{ service.description_en }}{% else %}{{ service.description }}{% endif %}</p>
<a href="https://{{ service.domain }}" class="uk-text-large">{% trans "Rejoindre !" %}</a> <a href="https://{{ service.domain }}" class="uk-text-large" target="_blank">{% trans "Rejoindre !" %}</a>
</div> </div>
<div class="uk-card-footer uk-card-media"> <div class="uk-card-footer uk-card-media">
{% if service.sources == 'CLOSED' %} {% if service.sources == 'CLOSED' %}