mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
added unsupported text
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
e801fd8bb9
commit
18ae62e4bc
@@ -24,6 +24,9 @@
|
||||
</head>
|
||||
<body onload="selectVersion('<%= version %>');">
|
||||
<%= render("_templates/_topnav.html.erb", :distro_key => distro_key) %>
|
||||
<%
|
||||
unsupported_versions = ["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10"];
|
||||
%>
|
||||
<div class="container">
|
||||
<p class="toggle-nav visible-xs pull-left">
|
||||
<button class="btn btn-default btn-sm" type="button" data-toggle="offcanvas">Toggle nav</button>
|
||||
@@ -46,7 +49,7 @@
|
||||
<select id="version-selector" onchange="versionSelector(this);">
|
||||
<% if (version == "4.3") %>
|
||||
<option value="4.3">4.3</option>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<option value="4.2">4.2</option>
|
||||
<option value="4.1">4.1</option>
|
||||
<option value="3.11">3.11</option>
|
||||
@@ -77,11 +80,15 @@
|
||||
<a href="https://github.com/openshift/openshift-docs/commits/enterprise-<%= (distro_key == "openshift-enterprise") ? version : ((distro_key == "openshift-dedicated") ? "3.11" : "3.11") %>/<%= repo_path %>">
|
||||
Page history
|
||||
</a>
|
||||
<%
|
||||
unless (unsupported_versions.include? version)
|
||||
%>
|
||||
/
|
||||
<a href="https://github.com/openshift/openshift-docs/issues/new?title=<%= (distro_key == "openshift-enterprise") ? "[enterprise-#{version}] Edit suggested in file #{repo_path}" :
|
||||
((distro_key == "openshift-dedicated") ? "[dedicated] Edit suggested in file #{repo_path}" : "[online] Edit suggested in file #{repo_path}") %>">
|
||||
Suggest an edit
|
||||
</a>
|
||||
<% end %>
|
||||
</span>
|
||||
<% end %>
|
||||
</ol>
|
||||
@@ -119,6 +126,15 @@
|
||||
This documentation is work in progress and might not be complete or fully tested.
|
||||
</div>
|
||||
<% end %>
|
||||
<%
|
||||
if (unsupported_versions.include? version)
|
||||
%>
|
||||
<font size="+1" color="red">You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is <a href="https://docs.openshift.com/container-platform/3.11/welcome/index.html">[3.11]</a>. For the most recent version 4, see <a href="https://docs.openshift.com/container-platform/latest/welcome/index.html">[4]</a></font>
|
||||
<div id="annoying-box"
|
||||
style="position: fixed; top: 100px; left: 10px; width: 100px; height: 100px; color: red">
|
||||
You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is <a href="https://docs.openshift.com/container-platform/3.11/welcome/index.html">[3.11]</a>. For the most recent version 4, see <a href="https://docs.openshift.com/container-platform/latest/welcome/index.html">[4]</a>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= content %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user