summaryrefslogtreecommitdiff
path: root/Project-Unite/Views
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-02 16:03:32 -0400
committerMichael <[email protected]>2017-05-02 16:03:32 -0400
commit13ad0ff4f3bce05e513768d4999a3f4ec471b872 (patch)
tree85c44b6fa88c79d3d91728dcd3aaee190aea9752 /Project-Unite/Views
parent73402c31a69bec303933d80a0cedaa5ae6a4f89c (diff)
downloadproject-unite-13ad0ff4f3bce05e513768d4999a3f4ec471b872.tar.gz
project-unite-13ad0ff4f3bce05e513768d4999a3f4ec471b872.tar.bz2
project-unite-13ad0ff4f3bce05e513768d4999a3f4ec471b872.zip
Pong highscore frontend.
Diffstat (limited to 'Project-Unite/Views')
-rw-r--r--Project-Unite/Views/Stats/Pong.cshtml42
1 files changed, 42 insertions, 0 deletions
diff --git a/Project-Unite/Views/Stats/Pong.cshtml b/Project-Unite/Views/Stats/Pong.cshtml
new file mode 100644
index 0000000..c14ed4a
--- /dev/null
+++ b/Project-Unite/Views/Stats/Pong.cshtml
@@ -0,0 +1,42 @@
+@model Project_Unite.Models.PongStatsViewModel
+@{
+ ViewBag.Title = "Pong - Highscores";
+}
+
+<h2>Pong highscores</h2>
+
+<p>One of the apps in ShiftOS is a recreation of Pong where the game is split into levels that are 60 minutes in length.</p>
+
+<p>You can earn Codepoints in Pong by either beating the AI, or surviving a level. You can cash out at the end of the level. Just be ware, if the ball gets past you, you lose all those Codepoints.</p>
+
+<p>Below is a list of everyone's Pong scores - the top players at the top of the list.</p>
+
+<table class="table-condensed">
+ <tr>
+ <th>User</th>
+ <th>Level</th>
+ <th>Codepoints</th>
+ </tr>
+@foreach(var entry in Model.Highscores)
+{
+ <tr>
+ <td>@Html.UserLink(entry.UserId)</td>
+ <td>@entry.Level</td>
+ <td>@entry.CodepointsCashout CP</td>
+ </tr>
+}
+ </table>
+
+<ul class="pagination">
+ @for(int i = 1; i <= Model.PageCount; i++)
+ {
+ @if (i == Model.CurrentPage)
+ {
+ <li class="active">@Html.ActionLink(i.ToString(), "Pong", "Stats", null, new { id = i })</li>
+ }
+ else
+ {
+ <li>@Html.ActionLink(i.ToString(), "Pong", "Stats", null, new { id = i })</li>
+ }
+ }
+</ul> \ No newline at end of file