Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
8d3ed21f
Commit
8d3ed21f
authored
Dec 20, 2016
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pedro copy changes
parent
ccfbbf7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
app/views/projects/mattermosts/_team_selection.html.haml
app/views/projects/mattermosts/_team_selection.html.haml
+6
-3
No files found.
app/views/projects/mattermosts/_team_selection.html.haml
View file @
8d3ed21f
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
%hr
%hr
=
form_for
(
:mattermost
,
method: :post
,
url:
namespace_project_mattermost_path
(
@project
.
namespace
,
@project
))
do
|
f
|
=
form_for
(
:mattermost
,
method: :post
,
url:
namespace_project_mattermost_path
(
@project
.
namespace
,
@project
))
do
|
f
|
%h4
Team
%h4
Team
%p
Select or create the team where the slash commands will be used in
%p
=
@teams
.
one?
?
'The team'
:
'Select the team'
where the slash commands will be used in
-
selected_id
=
@teams
.
keys
.
first
if
@teams
.
one?
-
selected_id
=
@teams
.
keys
.
first
if
@teams
.
one?
=
f
.
select
(
:team_id
,
mattermost_teams_options
(
@teams
),
{},
{
class:
'form-control'
,
selected:
"
#{
selected_id
}
"
,
disabled:
@teams
.
one?
})
=
f
.
select
(
:team_id
,
mattermost_teams_options
(
@teams
),
{},
{
class:
'form-control'
,
selected:
"
#{
selected_id
}
"
,
disabled:
@teams
.
one?
})
.help-block
.help-block
...
@@ -22,8 +24,9 @@
...
@@ -22,8 +24,9 @@
%p
Choose the word that will trigger commands
%p
Choose the word that will trigger commands
=
f
.
text_field
(
:trigger
,
value:
@project
.
path
,
class:
'form-control'
)
=
f
.
text_field
(
:trigger
,
value:
@project
.
path
,
class:
'form-control'
)
.help-block
.help-block
%p
Trigger word must be unique, and cannot begin with a slash or contain any spaces. Use the word that works best for your team.
%p
%p
Fill in the word that works best for your team.
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.
%p
%p
Suggestions:
Suggestions:
%code
=
'gitlab'
%code
=
'gitlab'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment