blob: 9f1b11d6ab5af25ae5d3ca6381683c8d71be55a8 (
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.label-list-item
.monospace
= File.basename(file)
- else
.gl-new-card-empty.gl-text-center= _('No file hooks found.')
|