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
Tatuya Kamada
gitlab-ce
Commits
334347fe
Commit
334347fe
authored
Nov 21, 2016
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Frontend review changes
parent
67fde388
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
84 deletions
+90
-84
app/assets/stylesheets/framework/forms.scss
app/assets/stylesheets/framework/forms.scss
+29
-28
app/assets/stylesheets/pages/settings.scss
app/assets/stylesheets/pages/settings.scss
+4
-0
app/views/projects/services/mattermost_slash_commands/_help.html.haml
...ojects/services/mattermost_slash_commands/_help.html.haml
+18
-18
app/views/shared/_service_settings.html.haml
app/views/shared/_service_settings.html.haml
+39
-38
No files found.
app/assets/stylesheets/framework/forms.scss
View file @
334347fe
...
...
@@ -68,41 +68,42 @@ label {
}
}
.help-form
{
.form-group
{
.control-label
{
font-weight
:
bold
;
padding-top
:
4px
;
}
.help-form
.form-group
{
margin-left
:
0
;
margin-right
:
0
;
.form-control
{
height
:
29px
;
background
:
$white-light
;
font-family
:
$monospace_font
;
}
.control-label
{
font-weight
:
bold
;
padding-top
:
4px
;
}
.input-group-btn
.btn
{
padding
:
3px
$gl-btn-padding
;
background-color
:
$gray
-light
;
border
:
1px
solid
$border-color
;
}
.form-control
{
height
:
29px
;
background
:
$white
-light
;
font-family
:
$monospace_font
;
}
.text-block
{
line-height
:
0
.8
;
padding-top
:
9px
;
.input-group-btn
.btn
{
padding
:
3px
$gl-btn-padding
;
background-color
:
$gray-light
;
border
:
1px
solid
$border-color
;
}
.text-block
{
line-height
:
0
.8
;
padding-top
:
9px
;
code
{
line-height
:
1
.8
;
}
code
{
line-height
:
1
.8
;
}
}
@media
(
max-width
:
$screen-sm-min
)
{
padding
:
0
$gl-padding
;
@media
(
max-width
:
$screen-sm-min
)
{
padding
:
0
$gl-padding
;
.control-label
,
.text-block
{
padding-left
:
0
;
}
.control-label
,
.text-block
{
padding-left
:
0
;
}
}
}
...
...
app/assets/stylesheets/pages/settings.scss
View file @
334347fe
...
...
@@ -20,3 +20,7 @@
.danger-title
{
color
:
$gl-danger
;
}
.service-settings
.control-label
{
padding-top
:
0
;
}
app/views/projects/services/mattermost_slash_commands/_help.html.haml
View file @
334347fe
...
...
@@ -2,24 +2,24 @@
-
run_actions_text
=
"Perform common operations on this project:
#{
pretty_path_with_namespace
}
"
.well
%p
This service allows GitLab users to perform common operations on this
project by entering slash commands in Mattermost.
%p
See list of available commands in Mattermost after setting up this service,
by entering
%code
/
<
command_trigger_word
>
help
%
p
To setup this service:
%ul
.list-unstyled
%li
1.
=
link_to
'Enable custom slash commands'
,
'https://docs.mattermost.com/developer/slash-commands.html#enabling-custom-commands'
on your Mattermost installation
%li
2.
=
link_to
'Add a slash command'
,
'https://docs.mattermost.com/developer/slash-commands.html#set-up-a-custom-command'
in Mattermost with these options:
This service allows GitLab users to perform common operations on this
project by entering slash commands in Mattermost.
%br
See list of available commands in Mattermost after setting up this service,
by entering
%code
/
<
command_trigger_word
>
help
%br
%
br
To setup this service:
%ul
.list-unstyled
%li
1.
=
link_to
'Enable custom slash commands'
,
'https://docs.mattermost.com/developer/slash-commands.html#enabling-custom-commands'
on your Mattermost installation
%li
2.
=
link_to
'Add a slash command'
,
'https://docs.mattermost.com/developer/slash-commands.html#set-up-a-custom-command'
in Mattermost with these options:
%hr
...
...
app/views/shared/_service_settings.html.haml
View file @
334347fe
...
...
@@ -7,43 +7,44 @@
=
preserve
do
=
markdown
@service
.
help
.form-group
=
form
.
label
:active
,
"Active"
,
class:
"control-label"
.col-sm-10
=
form
.
check_box
:active
-
if
@service
.
supported_events
.
present?
.service-settings
.form-group
=
form
.
label
:url
,
"Trigger"
,
class:
'control-label'
=
form
.
label
:active
,
"Active"
,
class:
"control-label"
.col-sm-10
-
@service
.
supported_events
.
each
do
|
event
|
%div
=
form
.
check_box
service_event_field_name
(
event
),
class:
'pull-left'
.prepend-left-20
=
form
.
label
service_event_field_name
(
event
),
class:
'list-label'
do
%strong
=
event
.
humanize
-
field
=
@service
.
event_field
(
event
)
-
if
field
%p
=
form
.
text_field
field
[
:name
],
class:
"form-control"
,
placeholder:
field
[
:placeholder
]
%p
.light
=
service_event_description
(
event
)
-
@service
.
global_fields
.
each
do
|
field
|
-
type
=
field
[
:type
]
-
if
type
==
'fieldset'
-
fields
=
field
[
:fields
]
-
legend
=
field
[
:legend
]
%fieldset
%legend
=
legend
-
fields
.
each
do
|
subfield
|
=
render
'shared/field'
,
form:
form
,
field:
subfield
-
else
=
render
'shared/field'
,
form:
form
,
field:
field
=
form
.
check_box
:active
-
if
@service
.
supported_events
.
present?
.form-group
=
form
.
label
:url
,
"Trigger"
,
class:
'control-label'
.col-sm-10
-
@service
.
supported_events
.
each
do
|
event
|
%div
=
form
.
check_box
service_event_field_name
(
event
),
class:
'pull-left'
.prepend-left-20
=
form
.
label
service_event_field_name
(
event
),
class:
'list-label'
do
%strong
=
event
.
humanize
-
field
=
@service
.
event_field
(
event
)
-
if
field
%p
=
form
.
text_field
field
[
:name
],
class:
"form-control"
,
placeholder:
field
[
:placeholder
]
%p
.light
=
service_event_description
(
event
)
-
@service
.
global_fields
.
each
do
|
field
|
-
type
=
field
[
:type
]
-
if
type
==
'fieldset'
-
fields
=
field
[
:fields
]
-
legend
=
field
[
:legend
]
%fieldset
%legend
=
legend
-
fields
.
each
do
|
subfield
|
=
render
'shared/field'
,
form:
form
,
field:
subfield
-
else
=
render
'shared/field'
,
form:
form
,
field:
field
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