Created
November 16, 2014 11:54
-
-
Save nul800sebastiaan/9ac50d5a473ef028725d to your computer and use it in GitHub Desktop.
Paging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="pagination-wrapper"> | |
<nav class="pagination" role="pagination"> | |
@if (Model.IsFirstPage == false) | |
{ | |
<a class="newer-posts" href="?page=@Model.PreviousPage">← Newer Posts</a> | |
} | |
<span class="page-number">Page <span class="number">@Model.Page</span> of <span class="number">@Model.TotalPages</span></span> | |
@if (Model.IsLastPage == false) | |
{ | |
<a class="older-posts" href="?page=@Model.NextPage">Older Posts →</a> | |
} | |
</nav> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment