summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/_deprecation_alert.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/clusters/clusters/_deprecation_alert.html.haml')
-rw-r--r--app/views/clusters/clusters/_deprecation_alert.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/clusters/clusters/_deprecation_alert.html.haml b/app/views/clusters/clusters/_deprecation_alert.html.haml
new file mode 100644
index 00000000000..202e2c14d3f
--- /dev/null
+++ b/app/views/clusters/clusters/_deprecation_alert.html.haml
@@ -0,0 +1,7 @@
+= render Pajamas::AlertComponent.new(variant: :warning, dismissible: false, alert_class: 'gl-mt-6 gl-mb-3') do
+ .gl-alert-body
+ - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe
+ - issue_link_start = link_start % { url: 'https://gitlab.com/gitlab-org/configure/general/-/issues/199' }
+ - docs_link_start = link_start % { url: help_page_path('user/clusters/agent/index.md') }
+ - link_end = '</a>'.html_safe
+ = s_('ClusterIntegration|This process is %{issue_link_start}deprecated%{issue_link_end}. Use the %{docs_link_start}the GitLab agent for Kubernetes%{docs_link_end} instead.').html_safe % { docs_link_start: docs_link_start, docs_link_end: link_end, issue_link_start: issue_link_start, issue_link_end: link_end }