debian-mirror-gitlab/app/views/shared/file_hooks/_index.html.haml

29 lines
962 B
Text
Raw Normal View History

2020-03-13 15:44:24 +05:30
- file_hooks = Gitlab::FileHook.files
2020-07-28 23:09:34 +05:30
.row.gl-mt-3
2020-03-13 15:44:24 +05:30
.col-lg-4
2020-06-23 00:09:42 +05:30
%h4.gl-mt-0
2020-03-13 15:44:24 +05:30
= _('File Hooks')
%p
= _('File hooks are similar to system hooks but are executed as files instead of sending data to a URL.')
= link_to _('For more information, see the File Hooks documentation.'), help_page_path('administration/file_hooks')
2020-07-28 23:09:34 +05:30
.col-lg-8.gl-mb-3
2020-03-13 15:44:24 +05:30
- if file_hooks.any?
.card
.card-header
= _('File Hooks (%{count})') % { count: file_hooks.count }
%ul.content-list
- file_hooks.each do |file|
%li
.monospace
= File.basename(file)
2020-05-24 23:13:21 +05:30
- if File.dirname(file).ends_with?('plugins')
.text-warning
= _('Plugins directory is deprecated and will be removed in 14.0. Please move this file into /file_hooks directory.')
2020-03-13 15:44:24 +05:30
- else
.card.bg-light.text-center
.nothing-here-block= _('No file hooks found.')