metamaps/metamaps

View on GitHub
app/views/topic_mailer/connected.text.erb

Summary

Maintainability
Test Coverage
<% 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 } %>