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
e74e53ae
Commit
e74e53ae
authored
Nov 19, 2016
by
Luke "Jared" Bennett
Committed by
Z.J. van de Weg
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass @service using subject
parent
8e5ad7c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/admin/services/_form.html.haml
app/views/admin/services/_form.html.haml
+1
-1
app/views/projects/services/_form.html.haml
app/views/projects/services/_form.html.haml
+1
-1
app/views/projects/services/mattermost_command/_help.html.haml
...iews/projects/services/mattermost_command/_help.html.haml
+1
-1
app/views/shared/_service_settings.html.haml
app/views/shared/_service_settings.html.haml
+1
-1
No files found.
app/views/admin/services/_form.html.haml
View file @
e74e53ae
...
...
@@ -4,7 +4,7 @@
%p
#{
@service
.
description
}
template
=
form_for
:service
,
url:
admin_application_settings_service_path
,
method: :put
,
html:
{
class:
'form-horizontal fieldset-form'
}
do
|
form
|
=
render
'shared/service_settings'
,
form:
form
=
render
'shared/service_settings'
,
form:
form
,
subject:
@service
.footer-block.row-content-block
.form-actions
...
...
app/views/projects/services/_form.html.haml
View file @
e74e53ae
...
...
@@ -7,7 +7,7 @@
%p
=
@service
.
description
.col-lg-9
=
form_for
(
@service
,
as: :service
,
url:
namespace_project_service_path
(
@project
.
namespace
,
@project
,
@service
.
to_param
),
method: :put
,
html:
{
class:
'form-horizontal'
})
do
|
form
|
=
render
'shared/service_settings'
,
form:
form
=
render
'shared/service_settings'
,
form:
form
,
subject:
@service
.footer-block.row-content-block
=
form
.
submit
'Save changes'
,
class:
'btn btn-save'
...
...
app/views/projects/services/mattermost_command/_help.html.haml
View file @
e74e53ae
...
...
@@ -51,7 +51,7 @@
.form-group
=
label_tag
:request_url
,
'Request URL'
,
class:
'col-sm-2 col-xs-12 control-label'
.col-sm-10.col-xs-12.input-group
=
text_field_tag
:request_url
,
service_trigger_url
(
@service
),
class:
'form-control input-sm'
,
readonly:
'readonly'
=
text_field_tag
:request_url
,
service_trigger_url
(
subject
),
class:
'form-control input-sm'
,
readonly:
'readonly'
.input-group-btn
=
clipboard_button
(
clipboard_target:
'#request_url'
)
...
...
app/views/shared/_service_settings.html.haml
View file @
e74e53ae
=
form_errors
(
@service
)
-
if
lookup_context
.
template_exists?
(
'help'
,
"projects/services/
#{
@service
.
to_param
}
"
,
true
)
=
render
"projects/services/
#{
@service
.
to_param
}
/help"
,
subject:
@service
=
render
"projects/services/
#{
@service
.
to_param
}
/help"
,
subject:
subject
-
elsif
@service
.
help
.
present?
.well
=
preserve
do
...
...
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