summaryrefslogtreecommitdiff
path: root/app/views/shared/integrations/mattermost_slash_commands/_help.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/integrations/mattermost_slash_commands/_help.html.haml')
-rw-r--r--app/views/shared/integrations/mattermost_slash_commands/_help.html.haml17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/shared/integrations/mattermost_slash_commands/_help.html.haml b/app/views/shared/integrations/mattermost_slash_commands/_help.html.haml
new file mode 100644
index 00000000000..6ce1c65a8dc
--- /dev/null
+++ b/app/views/shared/integrations/mattermost_slash_commands/_help.html.haml
@@ -0,0 +1,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 && integration.project_level?
+ = render 'shared/integrations/mattermost_slash_commands/detailed_help', integration: integration
+
+- if enabled && integration.project_level?
+ = render 'shared/integrations/mattermost_slash_commands/installation_info', integration: integration