forked from
smokesignal.events/smokesignal
i18n+filtering fork - fluent-templates v2
1{%- from "pagination.html" import view_pagination -%}
2<section class="section">
3 <div class="container">
4 <h1 class="title is-1">{{ t("homepage-title") }}</h1>
5 <h2 class="subtitle">{{ t("homepage-subtitle") }}</h2>
6 <p class="content">
7 {{ t("homepage-quick-start-text") | safe }}
8 </p>
9 </div>
10</section>
11
12<section class="section">
13 <div class="container">
14 <h2 class="title is-2">{{ t("homepage-coming-events") }}</h2>
15 {% if error_message %}
16
17 <article class="message is-danger">
18 <div class="message-body">
19 <p>{{ error_message }}</p>
20 </div>
21 </article>
22
23 {% endif %}
24
25 {% if upcoming_events %}
26 <div class="upcoming-events">
27 {% for event in upcoming_events %}
28 {% include 'single_event.' + current_locale + '.incl.html' %}
29 {% endfor %}
30 </div>
31 <div class="has-text-centered mt-4">
32 <a class="button is-primary" href="/events" hx-boost="true">
33 <span class="icon">
34 <i class="fas fa-calendar-alt"></i>
35 </span>
36 <span>Voir tous les événements</span>
37 </a>
38 </div>
39 {% else %}
40 <p class="content">{{ t("no-upcoming-events") }}</p>
41 {% endif %}
42 </div>
43</section>
44
45<section class="section">
46 <div class="container">
47 <h2 class="title is-2">{{ t("homepage-recent-events") }}</h2>
48
49 {% if events %}
50 {% for event in events %}
51 {% include 'single_event.' + current_locale + '.incl.html' %}
52 {% endfor %}
53 <div class="has-text-centered mt-4">
54 <a class="button is-primary" href="/events" hx-boost="true">
55 <span class="icon">
56 <i class="fas fa-calendar-alt"></i>
57 </span>
58 <span>Voir tous les événements</span>
59 </a>
60 </div>
61 {% else %}
62 <p class="content">Aucun événement récent trouvé.</p>
63 {% endif %}
64 </div>
65</section>