Development #58367 » tiles-people.html
1 |
<!--
|
---|---|
2 |
Tiles poeple
|
3 |
Image + titre + sous-titre
|
4 |
-->
|
5 |
|
6 |
<h2>{{ cell.title }}</h2> |
7 |
|
8 |
<ul class="peoples--list tiles--list"> |
9 |
{% for fiche in json.data %} |
10 |
<li class="peoples--item tiles--item"> |
11 |
<a
|
12 |
class="tile tile-people" |
13 |
href=" |
14 |
{% if fiche.fields.typecontenu_raw == 'externe' %}
|
15 |
{{ fiche.fields.urldetail }}
|
16 |
{% else %}
|
17 |
{{ portal_url }}detail-tuile/{{ fiche.id }}/
|
18 |
{% endif %}"
|
19 |
>
|
20 |
<picture class="tile--picture"> |
21 |
<img class="tile--img" src="{% make_public_url url=fiche.fields.image.url %}"/> |
22 |
</picture>
|
23 |
|
24 |
<div class="tile--body"> |
25 |
<h3 class="tile--title">{{ fiche.fields.titre }}</h3> |
26 |
{% if fiche.fields.soustitre %} |
27 |
<h4 class="tile--subtitle">{{ fiche.fields.soustitre }}</h4> |
28 |
{% endif %} |
29 |
</div>
|
30 |
</a>
|
31 |
</li>
|
32 |
{% endfor %} |
33 |
</ul>
|
34 |
<p class="tiles--btn"> |
35 |
<a href="{{ portal_url }}test-actualites/toutes-les-actualites/" class="button-right-arrow">Voir les autres gens</a> |
36 |
</p>
|