MINOR: tidied up blog pagination template

This commit is contained in:
Will Rossiter 2008-12-04 03:13:32 +00:00
parent bda7fd1cd7
commit cb0ca458e3
1 changed files with 17 additions and 15 deletions

View File

@ -1,21 +1,23 @@
<% if BlogEntries.MoreThanOnePage %>
<div id="PageNumbers">
<% if BlogEntries.NotLastPage %>
<a class="next" href="$BlogEntries.NextLink" title="View the next page">Next</a>
<% end_if %>
<p>
<% if BlogEntries.NotFirstPage %>
<a class="prev" href="$BlogEntries.PrevLink" title="View the previous page">Prev</a>
<% end_if %>
<% if BlogEntries.NotFirstPage %>
<a class="prev" href="$BlogEntries.PrevLink" title="View the previous page">Prev</a>
<% end_if %>
<span>
<% control BlogEntries.Pages %>
<% if CurrentBool %>
$PageNum
<% else %>
<a href="$Link" title="View page number $PageNum">$PageNum</a>
<% end_if %>
<% end_control %>
</span>
<span>
<% control BlogEntries.Pages %>
<% if CurrentBool %>
$PageNum
<% else %>
<a href="$Link" title="View page number $PageNum">$PageNum</a>
<% end_if %>
<% end_control %>
</span>
<% if BlogEntries.NotLastPage %>
<a class="next" href="$BlogEntries.NextLink" title="View the next page">Next</a>
<% end_if %>
</p>
</div>
<% end_if %>