summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-02 21:05:51 -0400
committerMichael <[email protected]>2017-05-02 21:05:51 -0400
commitb44a5c227cd518e4f66c9e99857d341a380d8a60 (patch)
tree2e40394e615131ebac5d5a2e39870fba3b50322d
parentc63d62925ba265bae178a1db28dd451527cedb21 (diff)
downloadproject-unite-b44a5c227cd518e4f66c9e99857d341a380d8a60.tar.gz
project-unite-b44a5c227cd518e4f66c9e99857d341a380d8a60.tar.bz2
project-unite-b44a5c227cd518e4f66c9e99857d341a380d8a60.zip
fix pagination
-rw-r--r--Project-Unite/Views/Stats/Codepoints.cshtml2
-rw-r--r--Project-Unite/Views/Stats/Pong.cshtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/Project-Unite/Views/Stats/Codepoints.cshtml b/Project-Unite/Views/Stats/Codepoints.cshtml
index 81b8467..7321f1e 100644
--- a/Project-Unite/Views/Stats/Codepoints.cshtml
+++ b/Project-Unite/Views/Stats/Codepoints.cshtml
@@ -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>
}
diff --git a/Project-Unite/Views/Stats/Pong.cshtml b/Project-Unite/Views/Stats/Pong.cshtml
index e46cf4a..6c69ab2 100644
--- a/Project-Unite/Views/Stats/Pong.cshtml
+++ b/Project-Unite/Views/Stats/Pong.cshtml
@@ -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>
}