From 16ffe75b91c7d38e42863e8959fdc4e1731a0255 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 1 Jul 2014 20:52:36 +0200 Subject: [PATCH] =?UTF-8?q?La=20visualisation=20pour=20une=20personne=20au?= =?UTF-8?q?thentifi=C3=A9e=20ne=20fonctionnait=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/events/show.html.haml | 2 +- config/locales/fr.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/events/show.html.haml b/app/views/events/show.html.haml index 8abc59de..543bf653 100644 --- a/app/views/events/show.html.haml +++ b/app/views/events/show.html.haml @@ -1,4 +1,4 @@ -- if request.format == 'text/html' && controller.controller_name != 'moderations' && controller.controller_name != 'notes' && controller.action_name != 'edit' && controller.action_name != 'cancel' +- if @event.persisted? && request.format == 'text/html' && controller.controller_name != 'moderations' && controller.controller_name != 'notes' && controller.action_name != 'edit' && controller.action_name != 'cancel' #lug-list %h1=t '.lug-list' - if @event.related_region diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 21069048..dabd2735 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -133,6 +133,7 @@ fr: edit: title: Éditer un évènement preview: Prévisualisation de l'évènement + warning: Attention, cet évènement est déjà modéré. Toute modification sera immédiatement visible sur le site. forbidden: Vous n'êtes pas authorisé à modifier cet événement edit: Édition de l'évènement form: