Commit 90342c9e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add help section for services

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent afe1ff41
...@@ -41,6 +41,10 @@ class JenkinsService < CiService ...@@ -41,6 +41,10 @@ class JenkinsService < CiService
'An extendable open source continuous integration server' 'An extendable open source continuous integration server'
end end
def help
'You must have installed GitLab Hook plugin into Jenkins.'
end
def to_param def to_param
'jenkins' 'jenkins'
end end
......
...@@ -45,6 +45,10 @@ class Service < ActiveRecord::Base ...@@ -45,6 +45,10 @@ class Service < ActiveRecord::Base
# implement inside child # implement inside child
end end
def help
# implement inside child
end
def to_param def to_param
# implement inside child # implement inside child
end end
......
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
%li= msg %li= msg
- if @service.help.present?
.bs-callout
= @service.help
.form-group .form-group
= f.label :active, "Active", class: "control-label" = f.label :active, "Active", class: "control-label"
.col-sm-10 .col-sm-10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment