diff --git a/app/views/map_activity_mailer/daily_summary.html.erb b/app/views/map_activity_mailer/daily_summary.html.erb index 99fd53f7..827e0e99 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) %>
<%= pluralize(@summary_data[:stats][:messages_sent], 'message') %>
<% end %> - <% if @summary_data[:stats][:topics_added] > 0 %> + <% if !@summary_data[:stats][:topics_added].nil? %><%= pluralize(@summary_data[:stats][:topics_added], 'topic') %> added
<% end %> - <% if @summary_data[:stats][:synapses_added] > 0 %> + <% if !@summary_data[:stats][:synapses_added].nil? %><%= pluralize(@summary_data[:stats][:synapses_added], 'synapse') %> added
<% end %> - <% if @summary_data[:stats][:topics_moved] > 0 %> + <% if !@summary_data[:stats][:topics_moved].nil? %><%= pluralize(@summary_data[:stats][:topics_moved], 'topic') %> moved
<% end %> - <% if @summary_data[:stats][:topics_removed] > 0 %> + <% if !@summary_data[:stats][:topics_removed].nil? %><%= pluralize(@summary_data[:stats][:topics_removed], 'topic') %> removed
<% end %> - <% if @summary_data[:stats][:synapses_removed] > 0 %> + <% if !@summary_data[:stats][:synapses_removed].nil? %><%= pluralize(@summary_data[:stats][:synapses_removed], 'synapse') %> removed
<% end %>