summaryrefslogtreecommitdiff
path: root/app/views/projects/services/mattermost_slash_commands/_help.html.haml
blob: 4a7757daebcd83ccc151b3dfdf1e0967957bce8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- enabled = Gitlab.config.mattermost.enabled

.info-well
  .well-segment
    %p
      = s_("MattermostService|Use this service to perform common tasks in your project by entering slash commands in Mattermost.")
      = link_to help_page_path('user/project/integrations/mattermost_slash_commands.md'), target: '_blank' do
        = _("How do I configure this integration?")
        = sprite_icon('external-link')
    %p.inline
      = s_("MattermostService|After you configure the integration, view your new Mattermost commands by entering")
    %kbd.inline /<trigger> help
    - if !enabled && @service.project_level?
      = render 'projects/services/mattermost_slash_commands/detailed_help', subject: @service

- if enabled && @service.project_level?
  = render 'projects/services/mattermost_slash_commands/installation_info', subject: @service