made the mistake of not checking all cases

This commit is contained in:
Connor Turland 2017-10-17 01:28:07 -04:00
parent b83f366284
commit 8b492d6dc8

View file

@ -15,22 +15,22 @@
<%= link_to @map.name, map_url(@map) %>
</p>
<div>
<% if @summary_data[:stats][:messages_sent] > 0 %>
<% if !@summary_data[:stats][:messages_sent].nil? %>
<p style="margin:6px 0;color:#a354cd;"><%= pluralize(@summary_data[:stats][:messages_sent], 'message') %></p>
<% end %>
<% if @summary_data[:stats][:topics_added] > 0 %>
<% if !@summary_data[:stats][:topics_added].nil? %>
<p style="margin:6px 0;color:#4FC059;"><%= pluralize(@summary_data[:stats][:topics_added], 'topic') %> added</p>
<% end %>
<% if @summary_data[:stats][:synapses_added] > 0 %>
<% if !@summary_data[:stats][:synapses_added].nil? %>
<p style="margin:6px 0;color:#4FC059;"><%= pluralize(@summary_data[:stats][:synapses_added], 'synapse') %> added</p>
<% end %>
<% if @summary_data[:stats][:topics_moved] > 0 %>
<% if !@summary_data[:stats][:topics_moved].nil? %>
<p style="margin:6px 0;color:#00BCD4;"><%= pluralize(@summary_data[:stats][:topics_moved], 'topic') %> moved</p>
<% end %>
<% if @summary_data[:stats][:topics_removed] > 0 %>
<% if !@summary_data[:stats][:topics_removed].nil? %>
<p style="margin:6px 0;color:#c04f4f;"><%= pluralize(@summary_data[:stats][:topics_removed], 'topic') %> removed</p>
<% end %>
<% if @summary_data[:stats][:synapses_removed] > 0 %>
<% if !@summary_data[:stats][:synapses_removed].nil? %>
<p style="margin:6px 0;color:#c04f4f;"><%= pluralize(@summary_data[:stats][:synapses_removed], 'synapse') %> removed</p>
<% end %>
</div>