From 7ec7fd0d0d85d59aeb61619d3851605f58a68992 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 5 May 2020 11:59:52 +0200 Subject: [PATCH] fix notify_user_role_update --- .../notify_user_role_update.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/notifications_mailer/notify_user_role_update.html.erb b/app/views/notifications_mailer/notify_user_role_update.html.erb index 50cb2ae21..d10e1abca 100644 --- a/app/views/notifications_mailer/notify_user_role_update.html.erb +++ b/app/views/notifications_mailer/notify_user_role_update.html.erb @@ -4,4 +4,12 @@ name = Setting.find_by(name: 'fablab_name').value gender = Setting.find_by(name: 'name_genre').value %> -

<%= t('.body.role_changed', NAME: name, GENDER: gender, ROLE: t("roles.#{@attached_object.role}")) %>

+

<%= _t('.body.role_changed_html', + { + NAME: name, + GENDER: gender, + ROLE: t("roles.#{@attached_object.role}") + } + ) + # messageFormat +%>