silverstripe-blog/templates/ArchiveWidget.ss

21 lines
366 B
Scheme
Raw Normal View History

2012-05-21 04:58:26 +02:00
<% if DisplayMode == month %>
<ul class="archiveMonths">
<% loop Dates %>
2012-05-21 04:58:26 +02:00
<li>
<a href="$Link">
$Date.Format(F) $Date.Year
</a>
</li>
<% end_loop %>
2012-05-21 04:58:26 +02:00
</ul>
<% else %>
<ul class="archiveYears">
<% loop Dates %>
2012-05-21 04:58:26 +02:00
<li>
<a href="$Link">
$Date.Year<% if not Last %>,<% end_if %>
2012-05-21 04:58:26 +02:00
</a>
</li>
<% end_loop %>
2012-05-21 04:58:26 +02:00
</ul>
<% end_if %>