Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/_silent_mode_banner.html.haml')
-rw-r--r--app/views/shared/_silent_mode_banner.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/shared/_silent_mode_banner.html.haml b/app/views/shared/_silent_mode_banner.html.haml
new file mode 100644
index 00000000000..10e5d05fad2
--- /dev/null
+++ b/app/views/shared/_silent_mode_banner.html.haml
@@ -0,0 +1,9 @@
+- return unless ::Gitlab::SilentMode.enabled?
+
+= content_for :page_level_alert do
+ %div{ class: [container_class, @content_class, 'gl-pt-5!'] }
+ = render Pajamas::AlertComponent.new(title: s_('SilentMode|Silent mode is enabled'),
+ dismissible: false,
+ variant: :warning) do |c|
+ - c.with_body do
+ = s_('SilentMode|All outbound communications are blocked. %{link_start}Learn more%{link_end}.').html_safe % { link_start: "<a href='#{help_page_path('administration/silent_mode/index')}' target='_blank' rel='noopener noreferrer'>".html_safe, link_end: '</a>'.html_safe }