silverstripe-blog/0.2.2-rc1/templates/ArchiveWidget.ss
2010-03-18 04:04:11 +00:00

21 lines
384 B
Scheme

<% if DisplayMode == month %>
<ul class="archiveMonths">
<% control Dates %>
<li>
<a href="$Link">
$Date.Format(F) $Date.Year
</a>
</li>
<% end_control %>
</ul>
<% else %>
<ul class="archiveYears">
<% control Dates %>
<li>
<a href="$Link">
$Date.Year<% if Last %><% else %>,<% end_if %>
</a>
</li>
<% end_control %>
</ul>
<% end_if %>