mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
spiffy page list
This commit is contained in:
parent
66e3da8b2e
commit
6162da1825
1 changed files with 7 additions and 2 deletions
|
@ -77,10 +77,13 @@
|
|||
Html.RenderPartial("~/Views/Shared/_ModeratorBar.cshtml", Model);
|
||||
}
|
||||
|
||||
<p>Pages:
|
||||
<ul class="pagination">
|
||||
<li>@Html.ActionLink("First", "ViewTopic", "Forum", null, new { id = Model.Discriminator, page = 1 })</li>
|
||||
|
||||
@for(int i = 1; i <= ViewBag.PageCount; i++)
|
||||
{
|
||||
if (i == ViewBag.Page - 1)
|
||||
if (i == ViewBag.Page + 1)
|
||||
{
|
||||
<li class="active">@Html.ActionLink(i.ToString(), "ViewTopic", "Forum", null, new { id = Model.Discriminator, page = i })</li>
|
||||
}
|
||||
|
@ -89,4 +92,6 @@
|
|||
<li>@Html.ActionLink(i.ToString(), "ViewTopic", "Forum", null, new { id = Model.Discriminator, page = i })</li>
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
<li>@Html.ActionLink("Last", "ViewTopic", "Forum", null, new { id = Model.Discriminator, page = ViewBag.PageCount })</li>
|
||||
</ul>
|
||||
</p>
|
Loading…
Reference in a new issue