From 901eb4a513766c6504c5a3626e7384e834fb4095 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 17 Oct 2017 12:06:37 -0400 Subject: [PATCH] Update daily_summary.html.erb --- app/views/map_activity_mailer/daily_summary.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/map_activity_mailer/daily_summary.html.erb b/app/views/map_activity_mailer/daily_summary.html.erb index 827e0e99..d28d00a5 100644 --- a/app/views/map_activity_mailer/daily_summary.html.erb +++ b/app/views/map_activity_mailer/daily_summary.html.erb @@ -15,22 +15,22 @@ <%= link_to @map.name, map_url(@map) %>

- <% if !@summary_data[:stats][:messages_sent].nil? %> + <% if @summary_data[:stats][:messages_sent] %>

<%= pluralize(@summary_data[:stats][:messages_sent], 'message') %>

<% end %> - <% if !@summary_data[:stats][:topics_added].nil? %> + <% if @summary_data[:stats][:topics_added] %>

<%= pluralize(@summary_data[:stats][:topics_added], 'topic') %> added

<% end %> - <% if !@summary_data[:stats][:synapses_added].nil? %> + <% if @summary_data[:stats][:synapses_added] %>

<%= pluralize(@summary_data[:stats][:synapses_added], 'synapse') %> added

<% end %> - <% if !@summary_data[:stats][:topics_moved].nil? %> + <% if @summary_data[:stats][:topics_moved] %>

<%= pluralize(@summary_data[:stats][:topics_moved], 'topic') %> moved

<% end %> - <% if !@summary_data[:stats][:topics_removed].nil? %> + <% if @summary_data[:stats][:topics_removed] %>

<%= pluralize(@summary_data[:stats][:topics_removed], 'topic') %> removed

<% end %> - <% if !@summary_data[:stats][:synapses_removed].nil? %> + <% if @summary_data[:stats][:synapses_removed] %>

<%= pluralize(@summary_data[:stats][:synapses_removed], 'synapse') %> removed

<% end %>