From d8befb0ea394fe325bd809a18594880e00bae4ae Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Thu, 6 Oct 2022 15:53:27 +0100 Subject: [PATCH] Show member in sent notifications list --- app/views/notifications/index.html.erb | 4 ++-- config/locales/pt.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index f2cff23..0497b73 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -32,14 +32,14 @@ <%= t('notifications.attributes.to_be_sent_on') %> <%= t('notifications.attributes.template') %> - <%= t('notifications.attributes.status') %> + <%= t('notifications.attributes.member') %> <%= t('members.show.contribution_actions') %> <% @sent.each do |notification| %> <%= notification.to_be_sent_on %> <%= notification.template %> - <%= notification_status(notification.status) %> + <%= link_to notification.member do %><%= notification.member.display_name %> <<%= notification.member.email %>><% end %> <% if notification.status == 'scheduled' %> <%= form_with url: deliver_notification_path(notification) do |form| %> diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 7fe654c..ea9140e 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -124,6 +124,7 @@ pt: to_be_sent_on: Data de envio template: Modelo status: Estado + member: Membro status: sent: Enviada scheduled: Agendada