<% button_style = "margin-top: 8px;background-color:#4fc059;border-radius:2px;color:white;display:inline-block;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:12px;font-weight:bold;min-height:29px;line-height:29px;min-width:54px;outline:0px;padding:0 8px;text-align:center;text-decoration:none" %>

Hey <%= @user.name %>, there was activity by others in the last 24 hours on map <%= link_to @map.name, map_url(@map) %>

<% if @summary_data[:stats][:messages_sent] %>

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

<% end %> <% if @summary_data[:stats][:topics_added] %>

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

<% end %> <% if @summary_data[:stats][:synapses_added] %>

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

<% end %> <% if @summary_data[:stats][:topics_moved] %>

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

<% end %> <% if @summary_data[:stats][:topics_removed] %>

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

<% end %> <% if @summary_data[:stats][:synapses_removed] %>

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

<% end %>

<% if @summary_data[:topics_added] || @summary_data[:synapses_added] %>
<% if @summary_data[:topics_added] %>

Topics Added

<% end %> <% if @summary_data[:synapses_added] %>

Synapses Added

<% end %>
<% end %> <% if @summary_data[:topics_removed] || @summary_data[:synapses_removed] %>
<% if @summary_data[:topics_removed] %>

Topics Removed

<% end %> <% if @summary_data[:synapses_removed] %>

Synapses Removed

<% end %>
<% end %> <%= link_to 'Visit Map', map_url(@map), style: button_style %>

Make sense with Metamaps

<%= link_to 'Unfollow this map', unfollow_from_email_map_url(@map) %> <%= render partial: 'shared/mailer_unsubscribe_link' %>