debian-mirror-gitlab/app/views/projects/services/slack/_help.haml

17 lines
1.4 KiB
Text
Raw Normal View History

2020-04-08 14:13:33 +05:30
- webhooks_link_url = 'https://slack.com/apps/A0F7XDUAZ-incoming-webhooks'
- webhooks_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: webhooks_link_url }
.info-well
.well-segment
2020-10-24 23:57:45 +05:30
%p= s_('SlackIntegration|This service sends notifications about project events to Slack channels. To set up this service:')
2020-04-08 14:13:33 +05:30
%ol
%li
2020-10-24 23:57:45 +05:30
= html_escape(s_('SlackIntegration|%{webhooks_link_start}Add an incoming webhook%{webhooks_link_end} in your Slack team. The default channel can be overridden for each event.')) % { webhooks_link_start: webhooks_link_start.html_safe, webhooks_link_end: '</a>'.html_safe }
2020-04-08 14:13:33 +05:30
%li
2020-10-24 23:57:45 +05:30
= html_escape(s_('SlackIntegration|Paste the %{strong_open}Webhook URL%{strong_close} into the field below.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2020-04-08 14:13:33 +05:30
%li
2020-10-24 23:57:45 +05:30
= html_escape(s_('SlackIntegration|Select events below to enable notifications. The %{strong_open}Slack channel names%{strong_close} and %{strong_open}Slack username%{strong_close} fields are optional.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2020-04-08 14:13:33 +05:30
%p.mt-3.mb-0
2020-10-24 23:57:45 +05:30
= html_escape(s_('SlackIntegration|%{strong_open}Note:%{strong_close} Usernames and private channels are not supported.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2020-04-08 14:13:33 +05:30
= link_to _('Learn more'), help_page_path('user/project/integrations/slack')