fix pagination

This commit is contained in:
Michael 2017-05-02 21:05:51 -04:00
parent c63d62925b
commit b44a5c227c
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@
<ul class="pagination">
@for(int i = 1; i <= Model.PageCount; i++)
{
if (i == Model.CurrentPage - 1)
if (i == Model.CurrentPage + 1)
{
<li class="active">@Html.ActionLink(i.ToString(), "Codepoints", "Stats", new { id = i }, null)</li>
}

View file

@ -30,7 +30,7 @@
<ul class="pagination">
@for(int i = 1; i <= Model.PageCount; i++)
{
if (i == Model.CurrentPage - 1)
if (i == Model.CurrentPage + 1)
{
<li class="active">@Html.ActionLink(i.ToString(), "Pong", "Stats", new { id = i }, null)</li>
}