mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
18 lines
618 B
Plaintext
18 lines
618 B
Plaintext
![]() |
@using Orchard.Blogs.Extensions;
|
||
|
@{
|
||
|
Style.Include("pagination.css");
|
||
|
}
|
||
|
@if (Model.ThereIsANextPage || Model.Page > 1) {
|
||
|
<ul class="blog-pagination">
|
||
|
@if(Model.ThereIsANextPage) {
|
||
|
<li class="older">
|
||
|
@Html.ActionLink(T("Older Posts").Text, "Item", new { Area = "Orchard.Blogs", blogSlug = Model.BlogSlug, page = Model.Page + 1 })
|
||
|
</li>
|
||
|
}
|
||
|
@if(Model.Page > 1) {
|
||
|
<li class="newer">
|
||
|
@Html.ActionLink(T("Newer Posts").Text, "Item", new { Area = "Orchard.Blogs", blogSlug = Model.BlogSlug, page = Model.Page - 1 })
|
||
|
</li>
|
||
|
}
|
||
|
</ul>
|
||
|
}
|