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
Boxiang Sun
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 {
...
@@ -68,41 +68,42 @@ label {
}
}
}
}
.help-form
{
.help-form
.form-group
{
.form-group
{
margin-left
:
0
;
.control-label
{
margin-right
:
0
;
font-weight
:
bold
;
padding-top
:
4px
;
}
.form-control
{
.control-label
{
height
:
29px
;
font-weight
:
bold
;
background
:
$white-light
;
padding-top
:
4px
;
font-family
:
$monospace_font
;
}
}
.input-group-btn
.btn
{
.form-control
{
padding
:
3px
$gl-btn-padding
;
height
:
29px
;
background-color
:
$gray
-light
;
background
:
$white
-light
;
border
:
1px
solid
$border-color
;
font-family
:
$monospace_font
;
}
}
.text-block
{
.input-group-btn
.btn
{
line-height
:
0
.8
;
padding
:
3px
$gl-btn-padding
;
padding-top
:
9px
;
background-color
:
$gray-light
;
border
:
1px
solid
$border-color
;
}
.text-block
{
line-height
:
0
.8
;
padding-top
:
9px
;
code
{
code
{
line-height
:
1
.8
;
line-height
:
1
.8
;
}
}
}
}
@media
(
max-width
:
$screen-sm-min
)
{
@media
(
max-width
:
$screen-sm-min
)
{
padding
:
0
$gl-padding
;
padding
:
0
$gl-padding
;
.control-label
,
.control-label
,
.text-block
{
.text-block
{
padding-left
:
0
;
padding-left
:
0
;
}
}
}
}
}
}
}
...
...
app/assets/stylesheets/pages/settings.scss
View file @
334347fe
...
@@ -20,3 +20,7 @@
...
@@ -20,3 +20,7 @@
.danger-title
{
.danger-title
{
color
:
$gl-danger
;
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 @@
...
@@ -2,24 +2,24 @@
-
run_actions_text
=
"Perform common operations on this project:
#{
pretty_path_with_namespace
}
"
-
run_actions_text
=
"Perform common operations on this project:
#{
pretty_path_with_namespace
}
"
.well
.well
%p
This service allows GitLab users to perform common operations on this
This service allows GitLab users to perform common operations on this
project by entering slash commands in Mattermost.
project by entering slash commands in Mattermost.
%br
%p
See list of available commands in Mattermost after setting up this service,
See list of available commands in Mattermost after setting up this service,
by entering
by entering
%code
/
<
command_trigger_word
>
help
%code
/
<
command_trigger_word
>
help
%br
%
p
%
br
To setup this service:
To setup this service:
%ul
.list-unstyled
%ul
.list-unstyled
%li
%li
1.
1.
=
link_to
'Enable custom slash commands'
,
'https://docs.mattermost.com/developer/slash-commands.html#enabling-custom-commands'
=
link_to
'Enable custom slash commands'
,
'https://docs.mattermost.com/developer/slash-commands.html#enabling-custom-commands'
on your Mattermost installation
on your Mattermost installation
%li
%li
2.
2.
=
link_to
'Add a slash command'
,
'https://docs.mattermost.com/developer/slash-commands.html#set-up-a-custom-command'
=
link_to
'Add a slash command'
,
'https://docs.mattermost.com/developer/slash-commands.html#set-up-a-custom-command'
in Mattermost with these options:
in Mattermost with these options:
%hr
%hr
...
...
app/views/shared/_service_settings.html.haml
View file @
334347fe
...
@@ -7,43 +7,44 @@
...
@@ -7,43 +7,44 @@
=
preserve
do
=
preserve
do
=
markdown
@service
.
help
=
markdown
@service
.
help
.form-group
.service-settings
=
form
.
label
:active
,
"Active"
,
class:
"control-label"
.col-sm-10
=
form
.
check_box
:active
-
if
@service
.
supported_events
.
present?
.form-group
.form-group
=
form
.
label
:url
,
"Trigger"
,
class:
'control-label'
=
form
.
label
:active
,
"Active"
,
class:
"control-label"
.col-sm-10
.col-sm-10
-
@service
.
supported_events
.
each
do
|
event
|
=
form
.
check_box
:active
%div
=
form
.
check_box
service_event_field_name
(
event
),
class:
'pull-left'
-
if
@service
.
supported_events
.
present?
.prepend-left-20
.form-group
=
form
.
label
service_event_field_name
(
event
),
class:
'list-label'
do
=
form
.
label
:url
,
"Trigger"
,
class:
'control-label'
%strong
=
event
.
humanize
.col-sm-10
-
@service
.
supported_events
.
each
do
|
event
|
-
field
=
@service
.
event_field
(
event
)
%div
=
form
.
check_box
service_event_field_name
(
event
),
class:
'pull-left'
-
if
field
.prepend-left-20
%p
=
form
.
label
service_event_field_name
(
event
),
class:
'list-label'
do
=
form
.
text_field
field
[
:name
],
class:
"form-control"
,
placeholder:
field
[
:placeholder
]
%strong
=
event
.
humanize
%p
.light
=
service_event_description
(
event
)
-
field
=
@service
.
event_field
(
event
)
-
@service
.
global_fields
.
each
do
|
field
|
-
if
field
-
type
=
field
[
:type
]
%p
=
form
.
text_field
field
[
:name
],
class:
"form-control"
,
placeholder:
field
[
:placeholder
]
-
if
type
==
'fieldset'
-
fields
=
field
[
:fields
]
%p
.light
-
legend
=
field
[
:legend
]
=
service_event_description
(
event
)
%fieldset
-
@service
.
global_fields
.
each
do
|
field
|
%legend
=
legend
-
type
=
field
[
:type
]
-
fields
.
each
do
|
subfield
|
=
render
'shared/field'
,
form:
form
,
field:
subfield
-
if
type
==
'fieldset'
-
else
-
fields
=
field
[
:fields
]
=
render
'shared/field'
,
form:
form
,
field:
field
-
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