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
90342c9e
Commit
90342c9e
authored
May 15, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add help section for services
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
afe1ff41
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
app/models/project_services/jenkins_service.rb
app/models/project_services/jenkins_service.rb
+4
-0
app/models/service.rb
app/models/service.rb
+4
-0
app/views/projects/services/_form.html.haml
app/views/projects/services/_form.html.haml
+4
-0
No files found.
app/models/project_services/jenkins_service.rb
View file @
90342c9e
...
...
@@ -41,6 +41,10 @@ class JenkinsService < CiService
'An extendable open source continuous integration server'
end
def
help
'You must have installed GitLab Hook plugin into Jenkins.'
end
def
to_param
'jenkins'
end
...
...
app/models/service.rb
View file @
90342c9e
...
...
@@ -45,6 +45,10 @@ class Service < ActiveRecord::Base
# implement inside child
end
def
help
# implement inside child
end
def
to_param
# implement inside child
end
...
...
app/views/projects/services/_form.html.haml
View file @
90342c9e
...
...
@@ -18,6 +18,10 @@
%li
=
msg
-
if
@service
.
help
.
present?
.bs-callout
=
@service
.
help
.form-group
=
f
.
label
:active
,
"Active"
,
class:
"control-label"
.col-sm-10
...
...
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