2016-12-19 17:14:03 +00:00
|
|
|
%p
|
|
|
|
This service will be installed on the Mattermost instance at
|
2016-12-19 22:53:19 +00:00
|
|
|
%strong= link_to Gitlab.config.mattermost.host, Gitlab.config.mattermost.host
|
2016-12-19 17:14:03 +00:00
|
|
|
%hr
|
2021-07-13 18:08:57 +00:00
|
|
|
= form_for(:mattermost, method: :post, url: project_mattermost_path(@project), html: { class: 'js-requires-input' }) do |f|
|
2016-12-19 17:14:03 +00:00
|
|
|
%h4 Team
|
2016-12-20 14:54:23 +00:00
|
|
|
%p
|
|
|
|
= @teams.one? ? 'The team' : 'Select the team'
|
|
|
|
where the slash commands will be used in
|
2017-02-15 13:49:14 +00:00
|
|
|
- selected_id = @teams.one? ? @teams.first['id'] : nil
|
|
|
|
- options = options_for_select(mattermost_teams_options(@teams), selected_id)
|
|
|
|
= f.select(:team_id, options, { include_blank: 'Select team...'}, { class: 'form-control', disabled: @teams.one?, selected: selected_id, required: true })
|
|
|
|
= f.hidden_field(:team_id, value: selected_id, required: true) if @teams.one?
|
2018-04-11 18:26:37 +00:00
|
|
|
.form-text.text-muted
|
2016-12-19 22:53:19 +00:00
|
|
|
- if @teams.one?
|
2018-05-29 15:56:56 +00:00
|
|
|
This is the only available team that you are a member of.
|
2016-12-19 17:14:03 +00:00
|
|
|
- else
|
2018-05-29 15:56:56 +00:00
|
|
|
The list shows all available teams that you are a member of.
|
2016-12-19 17:14:03 +00:00
|
|
|
To create a team,
|
|
|
|
= link_to "#{Gitlab.config.mattermost.host}/create_team" do
|
|
|
|
use Mattermost's interface
|
2020-10-21 18:08:58 +00:00
|
|
|
= sprite_icon('external-link')
|
2016-12-22 20:20:12 +00:00
|
|
|
or ask your Mattermost system administrator.
|
2016-12-19 17:14:03 +00:00
|
|
|
%hr
|
|
|
|
%h4 Command trigger word
|
|
|
|
%p Choose the word that will trigger commands
|
2017-02-15 13:49:14 +00:00
|
|
|
= f.text_field(:trigger, value: @project.path, class: 'form-control', required: true)
|
2018-04-11 18:26:37 +00:00
|
|
|
.form-text.text-muted
|
2016-12-20 14:54:23 +00:00
|
|
|
%p
|
|
|
|
Trigger word must be unique, and can't begin with a slash or contain any spaces.
|
|
|
|
Use the word that works best for your team.
|
2016-12-19 17:14:03 +00:00
|
|
|
%p
|
|
|
|
Suggestions:
|
|
|
|
%code= 'gitlab'
|
|
|
|
%code= @project.path # Path contains no spaces, but dashes
|
2017-07-22 00:37:22 +00:00
|
|
|
%code= @project.full_path
|
2016-12-19 17:14:03 +00:00
|
|
|
%p
|
|
|
|
Reserved:
|
|
|
|
= link_to 'https://docs.mattermost.com/help/messaging/executing-commands.html#built-in-commands', target: '__blank' do
|
|
|
|
see list of built-in slash commands
|
2020-10-21 18:08:58 +00:00
|
|
|
= sprite_icon('external-link')
|
2016-12-19 17:14:03 +00:00
|
|
|
%hr
|
|
|
|
.clearfix
|
2018-04-09 17:42:45 +00:00
|
|
|
.float-right
|
2022-05-25 18:08:15 +00:00
|
|
|
= link_to _('Cancel'), edit_project_settings_integration_path(@project, @integration), class: 'gl-button btn btn-lg'
|
2022-05-31 18:08:16 +00:00
|
|
|
= f.submit 'Install', class: 'gl-button btn btn-confirm btn-lg'
|