1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 13:13:03 +02:00

Improve version picker for new pages in v5.2.x

This commit is contained in:
Mark Otto
2022-04-30 11:41:12 -07:00
committed by Mark Otto
parent 2ba73d2c80
commit 51535cd95a

View File

@@ -22,10 +22,14 @@
</a> </a>
</li> </li>
<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>
<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> <div class="dropdown-item disabled">v5.0.2</div>
{{- else }} {{- else }}
<a class="dropdown-item" href="https://getbootstrap.com/docs/5.0/{{ .Scratch.Get "versions_link" }}">v5.0.2</a> <a class="dropdown-item" href="https://getbootstrap.com/docs/5.0/{{ .Scratch.Get "versions_link" }}">v5.0.2</a>