Skip to content

Commit

Permalink
Improve version picker for new pages in v5.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Apr 30, 2022
1 parent 2ba73d2 commit 51535cd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions site/layouts/partials/docs-versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@
</a>
</li>
<li>
<a class="dropdown-item" href="https://getbootstrap.com/docs/5.1/{{ .Scratch.Get "versions_link" }}">v5.1.3</a>
{{- if (eq .Page.Params.added "5.2") }}
<div class="dropdown-item disabled">v5.1.3</div>
{{- else }}
<a class="dropdown-item" href="https://getbootstrap.com/docs/5.1/{{ .Scratch.Get "versions_link" }}">v5.1.3</a>
{{- end }}
</li>
<li>
{{- if eq .Page.Params.added "5.1" }}
{{- if or (eq .Page.Params.added "5.1") (eq .Page.Params.added "5.2") }}
<div class="dropdown-item disabled">v5.0.2</div>
{{- else }}
<a class="dropdown-item" href="https://getbootstrap.com/docs/5.0/{{ .Scratch.Get "versions_link" }}">v5.0.2</a>
Expand Down

0 comments on commit 51535cd

Please sign in to comment.