diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-03-05 11:27:05 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-03-05 11:27:05 +0200 |
commit | 9c50f96cc243377db9b61ea9d6d5da928060afdc (patch) | |
tree | fee0accf10ab6029fd921395e7ea71637f02e0f4 /app | |
parent | 8a0052c037f025b64159ca8cfe0d3451261c1edb (diff) | |
download | gitlab-ce-9c50f96cc243377db9b61ea9d6d5da928060afdc.tar.gz |
Show plugins list on project integrations page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/settings/integrations/show.html.haml | 1 | ||||
-rw-r--r-- | app/views/shared/plugins/_index.html.haml | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/views/projects/settings/integrations/show.html.haml b/app/views/projects/settings/integrations/show.html.haml index 2f1a548e119..5303430ab59 100644 --- a/app/views/projects/settings/integrations/show.html.haml +++ b/app/views/projects/settings/integrations/show.html.haml @@ -3,3 +3,4 @@ - page_title 'Integrations' = render 'projects/hooks/index' = render 'projects/services/index' += render 'shared/plugins/index' diff --git a/app/views/shared/plugins/_index.html.haml b/app/views/shared/plugins/_index.html.haml new file mode 100644 index 00000000000..ee73b0d7044 --- /dev/null +++ b/app/views/shared/plugins/_index.html.haml @@ -0,0 +1,20 @@ +- plugins = Gitlab::Plugin.files + +.row.prepend-top-default + .col-lg-4 + %h4.prepend-top-0 + Plugins + %p + #{link_to 'Plugins', help_page_path('administration/plugins')} are similar to + system hooks but can be are executed as files instead of URL. + + .col-lg-8.append-bottom-default + - if plugins.any? + %ul.content-list + - plugins.each do |file| + %li + %span.title + = File.basename(file) + - else + %p.settings-message.text-center.append-bottom-0 + No plugins found. |