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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
db66af4b
Commit
db66af4b
authored
Jun 07, 2018
by
Sam Beckham
Committed by
Clement Ho
Jun 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Admin area > Styling of service template page"
parent
71ae1bb2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
115 additions
and
114 deletions
+115
-114
app/views/admin/services/_form.html.haml
app/views/admin/services/_form.html.haml
+1
-2
app/views/projects/services/mattermost_slash_commands/_help.html.haml
...ojects/services/mattermost_slash_commands/_help.html.haml
+14
-13
app/views/projects/services/slack_slash_commands/_help.html.haml
...ws/projects/services/slack_slash_commands/_help.html.haml
+85
-84
app/views/shared/_field.html.haml
app/views/shared/_field.html.haml
+3
-3
app/views/shared/_service_settings.html.haml
app/views/shared/_service_settings.html.haml
+12
-12
No files found.
app/views/admin/services/_form.html.haml
View file @
db66af4b
...
...
@@ -7,5 +7,4 @@
=
render
'shared/service_settings'
,
form:
form
,
subject:
@service
.footer-block.row-content-block
.form-actions
=
form
.
submit
'Save'
,
class:
'btn btn-save'
app/views/projects/services/mattermost_slash_commands/_help.html.haml
View file @
db66af4b
-
enabled
=
Gitlab
.
config
.
mattermost
.
enabled
.card
.info-well
.well-segment
%p
This service allows users to perform common operations on this
project by entering slash commands in Mattermost.
...
...
app/views/projects/services/slack_slash_commands/_help.html.haml
View file @
db66af4b
-
pretty_name
=
defined?
(
@project
)
?
@project
.
full_name
:
'namespace / path'
-
run_actions_text
=
"Perform common operations on GitLab project:
#{
pretty_name
}
"
.card
.info-well
.well-segment
%p
This service allows users to perform common operations on this
project by entering slash commands in Slack.
...
...
app/views/shared/_field.html.haml
View file @
db66af4b
...
...
@@ -9,11 +9,11 @@
-
help
=
field
[
:help
]
-
disabled
=
disable_fields_service?
(
@service
)
.form-group
.form-group
.row
-
if
type
==
"password"
&&
value
.
present?
=
form
.
label
name
,
"Enter new
#{
title
.
downcase
}
"
,
class:
"col-form-label"
=
form
.
label
name
,
"Enter new
#{
title
.
downcase
}
"
,
class:
"col-form-label
col-sm-2
"
-
else
=
form
.
label
name
,
title
,
class:
"col-form-label"
=
form
.
label
name
,
title
,
class:
"col-form-label
col-sm-2
"
.col-sm-10
-
if
type
==
'text'
=
form
.
text_field
name
,
class:
"form-control"
,
placeholder:
placeholder
,
required:
required
,
disabled:
disabled
...
...
app/views/shared/_service_settings.html.haml
View file @
db66af4b
...
...
@@ -3,7 +3,8 @@
-
if
lookup_context
.
template_exists?
(
'help'
,
"projects/services/
#{
@service
.
to_param
}
"
,
true
)
=
render
"projects/services/
#{
@service
.
to_param
}
/help"
,
subject:
subject
-
elsif
@service
.
help
.
present?
.card
.info-well
.well-segment
=
markdown
@service
.
help
.service-settings
...
...
@@ -15,24 +16,23 @@
-
if
@service
.
configurable_events
.
present?
.form-group.row
=
form
.
label
:url
,
"Trigger"
,
class:
'col-form-label col-sm-2'
.col-sm-2.text-right
Trigger
.col-sm-10
-
@service
.
configurable_events
.
each
do
|
event
|
%div
=
form
.
check_box
service_event_field_name
(
event
),
class:
'float-left'
.prepend-left-20
=
form
.
label
service_event_field_name
(
event
),
class:
'
list
-label'
do
.form-group
.form-check
=
form
.
check_box
service_event_field_name
(
event
),
class:
'form-check-input'
=
form
.
label
service_event_field_name
(
event
),
class:
'
form-check
-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
%p
.text-muted
=
@service
.
class
.
event_description
(
event
)
-
@service
.
global_fields
.
each
do
|
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