We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a70cc9 commit 6b0d486Copy full SHA for 6b0d486
src/_layouts/default.html
@@ -38,10 +38,14 @@
38
v{{ page.version }}
39
</a>
40
<div class="dropdown-menu dropdown-menu-md-right" aria-labelledby="dropdownMenuLink">
41
- <a class="dropdown-item" href="/">v7.0</a>
42
{% for rails_version in site.rails_versions %}
43
- {% assign version = rails_version.first %}
44
- <a class="dropdown-item" href="/{{ version }}/">v{{ version }}</a>
+ {% assign version = rails_version[0] %}
+ {% assign detail = rails_version[1] %}
+ {% if detail.latest %}
45
+ <a class="dropdown-item" href="/">v{{ version }}</a>
46
+ {% else %}
47
+ <a class="dropdown-item" href="/{{ version }}/">v{{ version }}</a>
48
+ {% endif %}
49
{% endfor %}
50
</div>
51
0 commit comments