mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
17 lines
567 B
Scheme
17 lines
567 B
Scheme
<% if Versions %>
|
|
<div class="versions">
|
|
<ul>
|
|
<% loop Versions.sort("Title DESC").limit(4) %>
|
|
<li><a href="$Link" class="$LinkingMode">$Title<% if $IsStable %> (stable)<% end_if %></a></li>
|
|
<% end_loop %>
|
|
</ul>
|
|
</div>
|
|
<form id="VersionsArchive">
|
|
<select id="VersionSelect" onchange="location.href=VersionsArchive.VersionSelect.options[selectedIndex].value">
|
|
<option>Archive</option>
|
|
<% loop Versions.sort("Title DESC").limit(20, 4) %>
|
|
<option value="$Link">$Title</option>
|
|
<% end_loop %>
|
|
</select>
|
|
</form>
|
|
<% end_if %> |