2016-12-16 21:51:52 +00:00
|
|
|
# frozen_string_literal: true
|
2017-11-25 19:23:47 +00:00
|
|
|
|
2016-12-16 21:51:52 +00:00
|
|
|
class Webhooks::Slack::SynapseRemovedFromMap < Webhooks::Slack::Base
|
|
|
|
def text
|
|
|
|
connector = eventable.desc.empty? ? '->' : eventable.desc
|
2018-01-21 22:21:00 +00:00
|
|
|
|
2017-01-24 00:30:13 +00:00
|
|
|
# TODO: express correct directionality of arrows when desc is empty
|
2018-01-21 22:21:00 +00:00
|
|
|
|
|
|
|
"\"*#{eventable.topic1.name}* #{connector} *#{eventable.topic2.name}*\"" \
|
|
|
|
" was removed by *#{event.user.name}* as a connection" \
|
|
|
|
" from the map *#{view_map_on_metamaps}*"
|
2016-12-16 21:51:52 +00:00
|
|
|
end
|
|
|
|
end
|