diff --git a/src/Wuzlstats/Views/Teams/Index.cshtml b/src/Wuzlstats/Views/Teams/Index.cshtml new file mode 100644 index 0000000..aa2cb78 --- /dev/null +++ b/src/Wuzlstats/Views/Teams/Index.cshtml @@ -0,0 +1,65 @@ +@model Wuzlstats.ViewModels.Teams.IndexViewModel + +@if (Model.Recent) +{ +
+ These are the teams of the last @Model.Days days. All of them.
This is pretty sweet, but it gets better: There's also
+ this very same statistic, but for all of the time. All of it. Holy crap!
+
+ These are all the players. Ever.
No one will be forgotten. Shame and fame will last till the very end of days, or at least until a database crash with no backups.
+ There's the same statistic, but only for the last @Model.Days days, too.
+
+ | Team | +Score | +Last game | +Count | +
---|---|---|---|---|
+ @(rank++) + | ++ @Html.Partial("_Player", team.Player1) + @Html.Partial("_Player", team.Player2) + | +
+
+ @team.Wins
+ @team.Losses
+
+ |
+ + @team.LastGamePlayedOn.ToShortDateString() + | ++ @team.GamesCount + | +