mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 21:18:04 +00:00
Add banner to out-of-date doc versions w/ link to latest
This commit is contained in:
@@ -15,11 +15,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="head-blank">
|
<div class="head-blank">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row max-sized contents-container background-base-gray-side">
|
<div class="row max-sized contents-container background-base-gray-side">
|
||||||
|
|
||||||
{{ $url := urls.Parse .Permalink }}
|
{{ $url := urls.Parse .Permalink }}
|
||||||
{{ $path := split $url.Path "/" }}
|
{{ $path := split $url.Path "/" }}
|
||||||
{{ $product := index $path 1 }}
|
{{ $product := index $path 1 }}
|
||||||
@@ -37,10 +37,15 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{ if in .Dir "os/v1.x" }}
|
{{ if in .Dir "os/v1.x" }}
|
||||||
<div class="alert alert-notice">
|
<div class="alert alert-notice">
|
||||||
<strong>RancherOS 1.x is currently in a maintain-only-as-essential mode.</strong> It is no longer being actively maintained at a code level other than addressing critical or security fixes. For more information about the support status of RancherOS, see <a href="https://rancher.com/docs/os/v1.x/en/support/"> this page.</a>
|
<strong>RancherOS 1.x is currently in a maintain-only-as-essential mode.</strong> It is no longer being actively maintained at a code level other than addressing critical or security fixes. For more information about the support status of RancherOS, see <a href="https://rancher.com/docs/os/v1.x/en/support/"> this page.</a>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{ if or (in .Dir "/v2.0-v2.4") (in .Dir "/v2.5") }}
|
||||||
|
<div class="alert alert-notice">
|
||||||
|
<strong>You are viewing the documentation for an older Rancher release.</strong> If you're looking for the documentation for the latest Rancher release, go to <a href="https://rancher.com/docs/rancher/v2.6/en/"> this page</a> instead.
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
<div class="
|
<div class="
|
||||||
col-xl-3
|
col-xl-3
|
||||||
col-lg-4
|
col-lg-4
|
||||||
@@ -248,4 +253,4 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user