metamaps--metamaps/app/views/topic_mailer/connected.text.erb
Connor Turland 2d50f24be6 var misnamed
2017-02-11 14:21:47 +00:00

8 lines
No EOL
332 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) %>