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) %>

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

<%= 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 %>
@@ -61,7 +61,7 @@ <% end %> - + <% if @summary_data[:topics_removed] || @summary_data[:synapses_removed] %>
<% if @summary_data[:topics_removed] %>