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?
|
2023-03-04 22:38:38 +05:30
|
|
|
= render Pajamas::CardComponent.new do |c|
|
|
|
|
- c.header do
|
2020-03-13 15:44:24 +05:30
|
|
|
= _('File Hooks (%{count})') % { count: file_hooks.count }
|
2023-03-04 22:38:38 +05:30
|
|
|
- c.body do
|
|
|
|
%ul.content-list
|
|
|
|
- file_hooks.each do |file|
|
|
|
|
%li
|
|
|
|
.monospace
|
|
|
|
= File.basename(file)
|
2020-03-13 15:44:24 +05:30
|
|
|
- else
|
2023-03-04 22:38:38 +05:30
|
|
|
= render Pajamas::CardComponent.new do |c|
|
|
|
|
- c.body do
|
|
|
|
.nothing-here-block= _('No file hooks found.')
|