blob: 478f047e9cccaea021815c64a01deed89104b3df (
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
27
28
29
30
|
- file_hooks = Gitlab::FileHook.files
.settings-section
.settings-sticky-header
.settings-sticky-header-inner
%h4.gl-my-0
= _('File Hooks')
%p.gl-text-secondary
= _('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')
.gl-mb-3
= render Pajamas::CardComponent.new(card_options: { class: 'gl-new-card' }, header_options: { class: 'gl-new-card-header'}, body_options: { class: 'gl-new-card-body'}) do |c|
- c.with_header do
.gl-new-card-title-wrapper
%h3.gl-new-card-title
= _('File Hooks')
%span.gl-new-card-count
= sprite_icon('hook', css_class: 'gl-mr-2')
#{file_hooks.count}
- c.with_body do
.gl-new-card-content
- if file_hooks.any?
%ul.content-list{ class: 'gl-my-n3!' }
- file_hooks.each do |file|
%li.gl-border-b.gl-last-of-type-border-b-0
.monospace
= File.basename(file)
- else
.gl-new-card-empty.gl-text-center= _('No file hooks found.')
|