2016-09-24 03:00:46 +00:00
|
|
|
# frozen_string_literal: true
|
2017-11-25 19:23:47 +00:00
|
|
|
|
2016-03-12 23:36:38 +00:00
|
|
|
class Webhooks::Slack::SynapseAddedToMap < Webhooks::Slack::Base
|
|
|
|
def text
|
2016-12-16 21:51:52 +00:00
|
|
|
connector = eventable.desc.empty? ? '->' : eventable.desc
|
2018-01-21 22:21:00 +00:00
|
|
|
"\"*#{eventable.topic1.name}* #{connector} *#{eventable.topic2.name}*\"" \
|
|
|
|
" was added as a connection by *#{event.user.name}*" \
|
|
|
|
" to the map *#{view_map_on_metamaps}*"
|
2016-03-12 23:36:38 +00:00
|
|
|
end
|
|
|
|
end
|