You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
799 B
HTML
23 lines
799 B
HTML
4 years ago
|
{{/*
|
||
|
|
||
|
A modified copy of the version-banner.html partial in Docsy.
|
||
|
|
||
|
*/}}
|
||
|
|
||
|
|
||
|
{{ $color := "primary" }}
|
||
|
{{ $status := .Site.Params.version.status }}
|
||
|
{{ $latest_version := .Site.Params.version.current_version_url }}
|
||
|
{{ if eq $status "unstable"}}
|
||
|
<div class="pageinfo pageinfo-{{ $color }} pageinfo-unstable">
|
||
|
<p>You're looking at an unstable version of this specification.
|
||
|
Unstable specifications may change at any time without notice.</p>
|
||
|
<p><a href="{{ $latest_version | safeURL }}">Switch to the current stable release</a>.</p>
|
||
|
</div>
|
||
|
{{ else if eq $status "historical" }}
|
||
|
<div class="pageinfo pageinfo-{{ $color }}">
|
||
|
<p>You're looking at an old version of this specification.<p>
|
||
|
<p><a href="{{ $latest_version | safeURL }}">Switch to the current stable release</a>.</p>
|
||
|
</div>
|
||
|
{{ end }}
|