From 32f815f6593aa55297cafeea3ef366838bcfd195 Mon Sep 17 00:00:00 2001 From: mo Date: Wed, 30 Aug 2017 22:59:21 -0600 Subject: format time and emails. --- app/views/emails/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/emails/index.html.erb b/app/views/emails/index.html.erb index 4d3d9af..6a89668 100644 --- a/app/views/emails/index.html.erb +++ b/app/views/emails/index.html.erb @@ -15,12 +15,12 @@ <% @emails.each do |email| %> - <%= mail_to email.to[0]["email"] %> + <%= email.to.map { |x| mail_to(x["full"]) }.join(",").html_safe %> <%= mail_to email.from["full"] %> <%= email.subject %> <%= email.body %> - <%= email.created_at %> - <%= email.updated_at %> + <%= l email.created_at, format: :short %> + <%= l email.updated_at, format: :short %> <% end %> -- cgit v1.2.3