mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
MINOR: tidied up blog pagination template
This commit is contained in:
parent
bda7fd1cd7
commit
cb0ca458e3
@ -1,21 +1,23 @@
|
|||||||
<% if BlogEntries.MoreThanOnePage %>
|
<% if BlogEntries.MoreThanOnePage %>
|
||||||
<div id="PageNumbers">
|
<div id="PageNumbers">
|
||||||
<% if BlogEntries.NotLastPage %>
|
<p>
|
||||||
<a class="next" href="$BlogEntries.NextLink" title="View the next page">Next</a>
|
<% if BlogEntries.NotFirstPage %>
|
||||||
<% end_if %>
|
<a class="prev" href="$BlogEntries.PrevLink" title="View the previous page">Prev</a>
|
||||||
|
<% end_if %>
|
||||||
|
|
||||||
<% if BlogEntries.NotFirstPage %>
|
<span>
|
||||||
<a class="prev" href="$BlogEntries.PrevLink" title="View the previous page">Prev</a>
|
<% control BlogEntries.Pages %>
|
||||||
<% end_if %>
|
<% if CurrentBool %>
|
||||||
|
$PageNum
|
||||||
|
<% else %>
|
||||||
|
<a href="$Link" title="View page number $PageNum">$PageNum</a>
|
||||||
|
<% end_if %>
|
||||||
|
<% end_control %>
|
||||||
|
</span>
|
||||||
|
|
||||||
<span>
|
<% if BlogEntries.NotLastPage %>
|
||||||
<% control BlogEntries.Pages %>
|
<a class="next" href="$BlogEntries.NextLink" title="View the next page">Next</a>
|
||||||
<% if CurrentBool %>
|
<% end_if %>
|
||||||
$PageNum
|
</p>
|
||||||
<% else %>
|
|
||||||
<a href="$Link" title="View page number $PageNum">$PageNum</a>
|
|
||||||
<% end_if %>
|
|
||||||
<% end_control %>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
Loading…
x
Reference in New Issue
Block a user