metamaps--metamaps/app/views/topic_mailer/connected.text.erb
2017-02-16 13:55:19 +00:00

10 lines
No EOL
410 B
Text

<% topic1 = @entity || entity
synapse = @event || event
topic2 = (topic1.id == synapse.topic1_id ? synapse.topic2 : synapse.topic1) %>
<%= synapse.user.name %> connected topic <%= topic1.name %> to topic <%= topic2.name %>
<%= synapse.desc.length > 0 ? ' with the description' + synapse.desc : '' %>
<%= topic_url(topic1) %>
<%= render :partial => 'topic_mailer/unfollow', locals: { topic: topic1 } %>