|
8 | 8 | <meta charset="utf-8"> |
9 | 9 | <meta content="IE=edge" http-equiv="X-UA-Compatible"> |
10 | 10 | <meta content="width=device-width, initial-scale=1.0" name="viewport"> |
| 11 | + <!-- change this when 3.11 and 4.0 are released --> |
| 12 | + <%= (version == "3.11" || version == "4.0") ? '<meta name="robots" content="noindex,nofollow">' : '' %> |
11 | 13 | <title><%= [topic_title, subgroup_title].compact.join(' - ') %> | <%= group_title %> | <%= distro %> <%= version %></title> |
12 | 14 | <link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" type="text/css"> |
13 | 15 | <link href="<%= File.join(css_path, 'docs.css') %>" rel="stylesheet" /> |
|
34 | 36 | <script src="<%= File.join(javascripts_path, "bootstrap-offcanvas.js") %>" type="text/javascript"></script> |
35 | 37 | <script src="<%= File.join(javascripts_path, "reformat-html.js") %>" type="text/javascript"></script> |
36 | 38 | <script src="<%= File.join(javascripts_path, "hc-search.js") %>" type="text/javascript"></script> |
| 39 | + <script src="<%= File.join(javascripts_path, "page-loader.js") %>" type="text/javascript"></script> |
37 | 40 | <%= render("_templates/_analytics.html.erb", :distro_key => distro_key) %> |
38 | 41 | </head> |
39 | | -<body> |
| 42 | +<body onload="selectVersion('<%= version %>');"> |
40 | 43 | <%= render("_templates/_topnav.html.erb", :distro_key => distro_key) %> |
41 | 44 | <div class="container"> |
42 | 45 | <p class="toggle-nav visible-xs pull-left"> |
|
47 | 50 | <a href="<%= site_home_path %>"><%= site_name %></a> |
48 | 51 | </li> |
49 | 52 | <li class="hidden-xs active"> |
50 | | - <%= breadcrumb_root %> |
| 53 | + <% if (distro_key == "openshift-enterprise") %> |
| 54 | + <% if (version = "3.10" || version >= "3.3") %> |
| 55 | + <a href="https://docs.openshift.com/container-platform/<%= version %>/welcome/index.html"> |
| 56 | + <%= distro %> |
| 57 | + </a> |
| 58 | + <% else %> |
| 59 | + <a href="https://docs.openshift.com/enterprise/<%= version %>/welcome/index.html"> |
| 60 | + <%= distro %> |
| 61 | + </a> |
| 62 | + <% end %> |
| 63 | + <select id="version-selector" onchange="versionSelector(this);"> |
| 64 | + <option value="3.10">3.10</option> |
| 65 | + <option value="3.9">3.9</option> |
| 66 | + <option value="3.7">3.7</option> |
| 67 | + <option value="3.6">3.6</option> |
| 68 | + <option value="3.5">3.5</option> |
| 69 | + <option value="3.4">3.4</option> |
| 70 | + <option value="3.3">3.3</option> |
| 71 | + <option value="3.2">3.2</option> |
| 72 | + <option value="3.1">3.1</option> |
| 73 | + <option value="3.0">3.0</option> |
| 74 | + </select> |
| 75 | + <% else %> |
| 76 | + <%= breadcrumb_root %> |
| 77 | + <% end %> |
51 | 78 | </li> |
52 | 79 | <li class="hidden-xs active"> |
53 | 80 | <%= breadcrumb_group %> |
|
58 | 85 | </li> |
59 | 86 | <% if (distro_key != "openshift-origin") %> |
60 | 87 | <span text-align="right" style="float: right !important"> |
61 | | - <a href="https://github.com/openshift/openshift-docs/commits/enterprise-<%= (distro_key == "openshift-enterprise") ? version : ((distro_key == "openshift-dedicated") ? "3.7" : "3.7") %>/<%= repo_path %>"> |
| 88 | + <a href="https://github.com/openshift/openshift-docs/commits/enterprise-<%= (distro_key == "openshift-enterprise") ? version : ((distro_key == "openshift-dedicated") ? "3.9" : "3.9") %>/<%= repo_path %>"> |
62 | 89 | Page history |
63 | 90 | </a> |
64 | 91 | / |
|
74 | 101 | <div class="row-fluid"> |
75 | 102 | <%= render("_templates/_search.html.erb", :distro_key => distro_key, :version => version) %> |
76 | 103 | </div> |
77 | | - <%= render("_templates/_nav_openshift.html.erb", :navigation => navigation, :group_id => group_id, :topic_id => topic_id, :subgroup_id => subgroup_id, :subtopic_shim => subtopic_shim) %> |
| 104 | + <%= render("_templates/_nav_openshift.html.erb", :distro_key => distro_key, :navigation => navigation, :group_id => group_id, :topic_id => topic_id, :subgroup_id => subgroup_id, :subtopic_shim => subtopic_shim) %> |
78 | 105 | </div> |
79 | 106 | <div class="col-xs-12 col-sm-9 col-md-9 main"> |
80 | 107 | <div class="page-header"> |
|
0 commit comments