|
58 | 58 | <body onload="selectVersion('<%= version %>');">
|
59 | 59 | <%= render("_templates/_topnav.html.erb", :distro_key => distro_key) %>
|
60 | 60 | <%
|
61 |
| - unsupported_versions = ["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "4.1", "4.2", "4.3", "4.4", "4.5"]; |
| 61 | + unsupported_versions = ["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "4.1", "4.2", "4.3", "4.4", "4.5", "3.65", "3.66", "3.67", "3.68"]; |
62 | 62 | %>
|
63 | 63 | <div class="container">
|
64 | 64 | <button id="hc-open-btn" class="open-btn-sm" onclick="openNav()" aria-label="Open"><span class="fa fa-bars" /></button>
|
|
81 | 81 |
|
82 | 82 | <% end %>
|
83 | 83 |
|
| 84 | + <% if ((unsupported_versions.include? version) && (distro_key == "openshift-acs")) %> |
| 85 | + |
| 86 | + <span> |
| 87 | + <div class="alert alert-danger" role="alert" id="support-alert"> |
| 88 | + <strong>You are viewing documentation for a release that is no longer maintained.</strong> To view the documentation for the most recent version, see the <a href="https://docs.openshift.com/acs/welcome/index.html" style="color: #545454 !important" class="link-primary">latest RHACS docs</a>. |
| 89 | + </div> |
| 90 | + </span> |
| 91 | + |
| 92 | + <% end %> |
| 93 | + |
84 | 94 | <li class="sitename">
|
85 | 95 | <a href="/">
|
86 | 96 | <%= site_name %></a>
|
|
121 | 131 | <option value="3.0">3.0</option>
|
122 | 132 | </select>
|
123 | 133 | <% else %>
|
124 |
| - <%= breadcrumb_root %> |
| 134 | + <% if (distro_key == "openshift-acs") %> |
| 135 | + <a href="https://docs.openshift.com/acs/<%= version %>/welcome/index.html"> |
| 136 | + <%= distro %> |
| 137 | + </a> |
| 138 | + <select id="version-selector" onchange="versionSelector(this);"> |
| 139 | + <option value="3.71">3.71</option> |
| 140 | + <option value="3.70">3.70</option> |
| 141 | + <option value="3.69">3.69</option> |
| 142 | + <option value="3.68">3.68</option> |
| 143 | + <option value="3.67">3.67</option> |
| 144 | + <option value="3.66">3.66</option> |
| 145 | + <option value="3.65">3.65</option> |
| 146 | + </select> |
| 147 | + <% else %> |
| 148 | + <%= breadcrumb_root %> |
| 149 | + <% end %> |
125 | 150 | <% end %>
|
126 | 151 | </li>
|
127 | 152 | <li class="hidden-xs active">
|
|
131 | 156 | <li class="hidden-xs active">
|
132 | 157 | <%= breadcrumb_topic %>
|
133 | 158 | </li>
|
134 |
| - <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro") %> |
| 159 | + <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs") %> |
135 | 160 | <span text-align="right" style="float: right !important">
|
136 | 161 | <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-enterprise") ? "enterprise-#{version}" : "dedicated-4" %>/<%= repo_path %>"><span class="material-icons-outlined" title="Page history">history</span></a>
|
137 | 162 | <%
|
|
151 | 176 | <% end %>
|
152 | 177 | <% end %>
|
153 | 178 | </span>
|
| 179 | + <% else %> |
| 180 | + <% if (distro_key == "openshift-acs") %> |
| 181 | + <span text-align="right" style="float: right !important"> |
| 182 | + <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-acs") ? "rhacs-docs-#{version}" : "rhacs-docs" %>/<%= repo_path %>"> |
| 183 | + <span class="material-icons-outlined" title="Page history">history |
| 184 | + </span> |
| 185 | + </a> |
| 186 | + <% unless (unsupported_versions.include? version) %> |
| 187 | + <a href="https://github.com/openshift/openshift-docs/issues/new?title=<%= "[rhacs-docs-#{version}] Issue in file #{repo_path}" %>"> |
| 188 | + <span class="material-icons-outlined" title="Open an issue">bug_report |
| 189 | + </span> |
| 190 | + </a> |
| 191 | + <a href="javascript: void(0);" onclick="getPDF();"> |
| 192 | + <span class="material-icons-outlined" title="Download PDF (may take a while for large pages)">picture_as_pdf |
| 193 | + </span> |
| 194 | + </a> |
| 195 | + <% end %> |
| 196 | + </span> |
| 197 | + <% end %> |
154 | 198 | <% end %>
|
155 | 199 | </ol>
|
156 | 200 | <div class="row row-offcanvas row-offcanvas-left">
|
|
0 commit comments