summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Stats
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-02 20:59:58 -0400
committerMichael <[email protected]>2017-05-02 20:59:58 -0400
commit737a18b592d757449548c9b4cf179b7a1fe8e1b9 (patch)
treeab2754368a5b88ff7bdc00236396d829bda7b657 /Project-Unite/Views/Stats
parent7b23b2c724bc4912158647d75fec50c4184931e6 (diff)
downloadproject-unite-737a18b592d757449548c9b4cf179b7a1fe8e1b9.tar.gz
project-unite-737a18b592d757449548c9b4cf179b7a1fe8e1b9.tar.bz2
project-unite-737a18b592d757449548c9b4cf179b7a1fe8e1b9.zip
Codepoints stats page
Diffstat (limited to 'Project-Unite/Views/Stats')
-rw-r--r--Project-Unite/Views/Stats/Codepoints.cshtml41
-rw-r--r--Project-Unite/Views/Stats/Pong.cshtml2
2 files changed, 42 insertions, 1 deletions
diff --git a/Project-Unite/Views/Stats/Codepoints.cshtml b/Project-Unite/Views/Stats/Codepoints.cshtml
new file mode 100644
index 0000000..81b8467
--- /dev/null
+++ b/Project-Unite/Views/Stats/Codepoints.cshtml
@@ -0,0 +1,41 @@
+@model Project_Unite.Models.PongStatsViewModel
+@{
+ ViewBag.Title = "Codepoints Highscores";
+}
+
+<h2>Codepoints Stats</h2>
+
+<p>In ShiftOS, Codepoints are your primary form of currency. You earn them by doing many actions such as playing Pong, drawing pictures in Artpad, skinning and shifting in Shifter, and more.</p>
+
+<p>You can use them to upgrade your OS, download more apps, etc.</p>
+
+<p>Below is a list of all users with Codepoints, starting with the top Shifters.</p>
+
+
+<table class="table-condensed">
+ <tr>
+ <th>User</th>
+ <th>Codepoints</th>
+ </tr>
+@foreach(var entry in Model.Highscores)
+{
+ <tr>
+ <td>@Html.UserLink(entry.UserId)</td>
+ <td>@entry.CodepointsCashout CP</td>
+ </tr>
+}
+ </table>
+
+<ul class="pagination">
+ @for(int i = 1; i <= Model.PageCount; i++)
+ {
+ if (i == Model.CurrentPage - 1)
+ {
+ <li class="active">@Html.ActionLink(i.ToString(), "Codepoints", "Stats", new { id = i }, null)</li>
+ }
+ else
+ {
+ <li>@Html.ActionLink(i.ToString(), "Codepoints", "Stats", new { id = i }, null)</li>
+ }
+ }
+</ul> \ No newline at end of file
diff --git a/Project-Unite/Views/Stats/Pong.cshtml b/Project-Unite/Views/Stats/Pong.cshtml
index faea446..e46cf4a 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)
+ if (i == Model.CurrentPage - 1)
{
<li class="active">@Html.ActionLink(i.ToString(), "Pong", "Stats", new { id = i }, null)</li>
}