metamaps--metamaps/app/views/topic_mailer/connected.text.erb
Connor Turland b0deafc53e Follows and some new notifications (#1063)
* all the good changes

* follows

* dont send duplicates

* remove follow_type for now

* dont add all the extra stuff we're not implementing yet

* refactor

* lots of fixes

* Delete activity.html.erb

* Delete activity.text.erb

* Update 20170209215819_create_follows.rb

* Update schema.rb

* Update mapping.rb

* Update mailboxer.rb
2017-02-11 00:20:42 -05:00

8 lines
330 B
Plaintext

<% 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' + event.desc : '' %>
<%= topic_url(topic1) %>