Skip to content

Commit 1be5931

Browse files
authored
Merge pull request #85363 from gaurav-nelson/banner-updates-fix-url
Fixed the new docs experience URL for ACS docs
2 parents 530af78 + d8bc8de commit 1be5931

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

_templates/_page_openshift.html.erb

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,18 @@
5959
<div class="container">
6060
<button id="hc-open-btn" class="open-btn-sm" onclick="openNav()" aria-label="Open"><span class="fa fa-bars" /></button>
6161
<ol class="breadcrumb hide-for-print">
62-
<%
62+
<%
6363
unsupported = (unsupported_versions.include?(version) ||
6464
unsupported_versions_acs.include?(version) ||
6565
unsupported_versions_builds.include?(version) ||
6666
unsupported_versions_gitops.include?(version) ||
6767
unsupported_versions_origin.include?(version)
6868
unsupported_versions_pipelines.include?(version) ||
69-
unsupported_versions_serverless.include?(version)
69+
unsupported_versions_serverless.include?(version) ||
70+
version == "4.18"
7071
);
7172

72-
if (!["openshift-webscale", "openshift-dpu", "openshift-lightspeed", "openshift-service-mesh", "openshift-origin"].include?(distro_key) || unsupported)
73+
if (!["openshift-webscale", "openshift-dpu", "openshift-lightspeed", "openshift-service-mesh", "openshift-origin", "openshift-acs"].include?(distro_key) || unsupported)
7374
%>
7475
<span>
7576
<div class="alert alert-info" role="primary" id="support-info">
@@ -102,6 +103,14 @@
102103
</span>
103104
<% end %>
104105

106+
<% if (distro_key == "openshift-acs") %>
107+
<span>
108+
<div class="alert alert-info" role="primary" id="support-info">
109+
<strong>OpenShift docs are moving and will soon only be available at <a href="https://docs.redhat.com/en/" style="color: #0C5460 !important" class="link-primary">docs.redhat.com</a>, the home of all Red Hat product documentation. Explore the <a href="https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_security_for_kubernetes/latest" style="color: #0C5460 !important" class="link-primary">new docs experience</a> today.</strong>
110+
</div>
111+
</span>
112+
<% end %>
113+
105114
<% if (version == "4.18") && (distro_key != "openshift-webscale" && distro_key != "openshift-dpu" && distro_key != "rosa-hcp") %>
106115
<span>
107116
<div class="alert alert-danger" role="alert" id="support-alert">

0 commit comments

Comments
 (0)