blob: ba968c6b2d2ed7eb3a2ef666f900c7beff4d54c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
- file_hooks = Gitlab::FileHook.files
.row.gl-mt-3
.col-lg-4
%h4.gl-mt-0
= _('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')
.col-lg-8.gl-mb-3
- if file_hooks.any?
= render Pajamas::CardComponent.new do |c|
- c.with_header do
= _('File Hooks (%{count})') % { count: file_hooks.count }
- c.with_body do
%ul.content-list
- file_hooks.each do |file|
%li
.monospace
= File.basename(file)
- else
= render Pajamas::CardComponent.new do |c|
- c.with_body do
.nothing-here-block= _('No file hooks found.')
|