Created
April 13, 2016 10:52
-
-
Save jaxxreal/46291feede85872128fba765d8aa09bf to your computer and use it in GitHub Desktop.
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
@model Core.Logic.Tables.PagingParameters | |
<div class="js-paging table-paging"> | |
<div class="pull-right center-mobile" style="margin-right: 15px;"> | |
@*@if(Model.PageCount > 1){ | |
<div class="paginate_input"> | |
<input type="text" class="form-control paginate_input js-direct"> | |
</div> | |
}*@ | |
<a class="paginate_button previous btn btn-default js-previous">Previous</a> | |
<span class="hidden-xs"> | |
<a class="paginate_button btn btn-default" data-page="1">1</a> | |
@if (Model.CurrentPage > 3) | |
{ | |
<a style="text-decoration:none;">...</a> | |
} | |
@if (Model.CurrentPage > 2) | |
{ | |
<a class="paginate_button btn btn-default" data-page="@(Model.CurrentPage - 1)">@(Model.CurrentPage - 1)</a> | |
} | |
@if (Model.CurrentPage > 1) | |
{ | |
<a class="paginate_button btn btn-default" data-page="@Model.CurrentPage">@Model.CurrentPage</a> | |
} | |
@if (Model.CurrentPage < Model.PageCount) | |
{ | |
<a class="paginate_button btn btn-default" data-page="@(Model.CurrentPage + 1)">@(Model.CurrentPage + 1)</a> | |
} | |
@if (Model.CurrentPage + 2 == Model.PageCount) | |
{ | |
<a class="paginate_button btn btn-default" data-page="@Model.PageCount">@Model.PageCount</a> | |
} | |
else if (Model.CurrentPage + 2 < Model.PageCount) | |
{ | |
<a style="text-decoration:none;">...</a> | |
<a class="paginate_button btn btn-default" data-page="@Model.PageCount">@Model.PageCount</a> | |
} | |
</span> | |
<a class="paginate_button next btn btn-default js-next">Next</a> | |
<div class="visible-xs center-mobile">page @Model.CurrentPage of @Model.PageCount</div> | |
@Html.HiddenFor(x => x.CurrentPage) | |
@Html.HiddenFor(x => x.PageCount) | |
@Html.HiddenFor(x => x.EntriesPerPage) | |
@Html.HiddenFor(x => x.SortField) | |
@Html.HiddenFor(x => x.SortDirect) | |
@Html.HiddenFor(x => x.TotalEntries) | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment