|
52 | 52 |
|
53 | 53 | unsupported_versions_gitops = [];
|
54 | 54 |
|
| 55 | + unsupported_versions_builds = []; |
| 56 | + |
55 | 57 | unsupported_versions_origin = ["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "3.11", "4.1", "4.2", "4.3", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "4.10", "4.11", "4.12"];
|
56 | 58 |
|
57 | 59 | %>
|
|
115 | 117 |
|
116 | 118 | <% end %>
|
117 | 119 |
|
| 120 | + <% if ((unsupported_versions_builds.include? version) && (distro_key == "openshift-builds")) %> |
| 121 | + |
| 122 | + <span> |
| 123 | + <div class="alert alert-danger" role="alert" id="support-alert"> |
| 124 | + <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/builds/latest/about/overview-openshift-builds.html" style="color: #545454 !important" class="link-primary">latest Builds docs</a>. |
| 125 | + </div> |
| 126 | + </span> |
| 127 | + |
| 128 | + <% end %> |
| 129 | + |
118 | 130 |
|
119 | 131 | <% if ((unsupported_versions_gitops.include? version) && (distro_key == "openshift-gitops")) %>
|
120 | 132 |
|
|
214 | 226 | <option value="1.11">1.11</option>
|
215 | 227 | <option value="1.10">1.10</option>
|
216 | 228 | </select>
|
| 229 | + <% elsif (distro_key == "openshift-builds") %> |
| 230 | + <a href="https://docs.openshift.com/builds/<%= version %>/about/overview-openshift-builds.html"> |
| 231 | + <%= distro %> |
| 232 | + </a> |
| 233 | + <select id="version-selector" onchange="versionSelector(this);"> |
| 234 | + <option value="1.0">1.0</option> |
| 235 | + </select> |
217 | 236 | <% elsif (distro_key == "openshift-gitops") %>
|
218 | 237 | <a href="https://docs.openshift.com/gitops/<%= version %>/release_notes/gitops-release-notes.html">
|
219 | 238 | <%= distro %>
|
|
262 | 281 | <li class="hidden-xs active">
|
263 | 282 | <%= breadcrumb_topic %>
|
264 | 283 | </li>
|
265 |
| - <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs" && distro_key != "openshift-serverless" && distro_key != "openshift-gitops" && distro_key != "openshift-pipelines") %> |
| 284 | + <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs" && distro_key != "openshift-serverless" && distro_key != "openshift-gitops" && distro_key != "openshift-pipelines" && distro_key != "openshift-builds") %> |
266 | 285 | <span text-align="right" style="float: right !important">
|
267 | 286 | <a href="https://github.com/openshift/openshift-docs/commits/<%=
|
268 | 287 | ((distro_key == "openshift-enterprise") ? "enterprise-#{version}"
|
|
343 | 362 | </a>
|
344 | 363 | <% end %>
|
345 | 364 | </span>
|
| 365 | + <% elsif (distro_key == "openshift-builds") %> |
| 366 | + <span text-align="right" style="float: right !important"> |
| 367 | + <a href="https://github.com/openshift/build-docs/commits/<%= (distro_key == "openshift-builds") ? "build-docs-#{version}" : "build-docs" %>/<%= repo_path %>"> |
| 368 | + <span class="material-icons-outlined" title="Page history">history |
| 369 | + </span> |
| 370 | + </a> |
| 371 | + <% unless (unsupported_versions_builds.include? version) %> |
| 372 | + <a href="https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12317820&issuetype=1&components=12332358&priority=4&summary=<%= "[build-docs-#{version}]+Issue+in+file+#{repo_path}"%>"> |
| 373 | + <span class="material-icons-outlined" title="Open an issue">bug_report |
| 374 | + </span> |
| 375 | + </a> |
| 376 | + <a href="javascript: void(0);" onclick="window.print()"> |
| 377 | + <span class="material-icons-outlined" title="Print page (Save as PDF)">picture_as_pdf</span> |
| 378 | + </a> |
| 379 | + <% end %> |
| 380 | + </span> |
346 | 381 | <% elsif (distro_key == "openshift-gitops") %>
|
347 | 382 | <span text-align="right" style="float: right !important">
|
348 | 383 | <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-gitops") ? "gitops-docs-#{version}" : "gitops-docs" %>/<%= repo_path %>">
|
|
442 | 477 | 'openshift-acs' : ['docs_acs', version],
|
443 | 478 | 'openshift-serverless' : ['docs_serverless', version],
|
444 | 479 | 'openshift-pipelines' : ['docs_pipelines', version],
|
| 480 | + 'openshift-builds' : ['docs_builds', version], |
445 | 481 | 'openshift-gitops' : ['docs_gitops', version]
|
446 | 482 | };
|
447 | 483 |
|
|
0 commit comments