From 37875f9588d7227dd3edabfaa1950657f75b4c29 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 5 Apr 2020 17:13:37 +0200 Subject: [PATCH] Warning message on the main page --- app/views/events/index.html.haml | 2 ++ config/locales/views/en.yml | 1 + config/locales/views/fr.yml | 1 + 3 files changed, 4 insertions(+) diff --git a/app/views/events/index.html.haml b/app/views/events/index.html.haml index 946a6e36..2a42b4c4 100644 --- a/app/views/events/index.html.haml +++ b/app/views/events/index.html.haml @@ -1,3 +1,5 @@ +%h2.warning= t '.warning' + - unless params[:year] || params[:start_date] || params[:iframe] = render '/maps/events' diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 6042e051..e92c5b52 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -31,6 +31,7 @@ en: \nContact: %{contact}." events: index: + warning: Attention, most events have been canceled because of the pandemic, even if they still appear on the agenda. Take care! calendar_in_html: This calendar in %{rss}, %{webcal}/%{ical} nb_events: "%{count} events" diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index 42b06165..ff5f68d0 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -31,6 +31,7 @@ fr: \nVous pouvez nous joindre sur la page %{contact}." events: index: + warning: Attention, la plupart des évènements physiques sont annulés à cause de la pandémie, même s'ils apparaissent encore sur l'agenda. Prenez soin de vous! calendar_in_html: Ce calendrier en %{rss}, %{webcal}/%{ical} nb_events: "%{count} événements"