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! +

+} +else +{ +

+ 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. +

+} + +
+ Order By +
+ Last played + Best + Worst + Most active +
+
+ + + + + + + + + + + + + @{var rank = 1; } + @foreach (var team in Model.Teams) + { + + + + + + + + } + +
TeamScoreLast gameCount
+ @(rank++) + + @Html.Partial("_Player", team.Player1) + @Html.Partial("_Player", team.Player2) + +
+ @team.Wins + @team.Losses +
+
+ @team.LastGamePlayedOn.ToShortDateString() + + @team.GamesCount +
diff --git a/src/Wuzlstats/Views/Teams/_Player.cshtml b/src/Wuzlstats/Views/Teams/_Player.cshtml new file mode 100644 index 0000000..edc8866 --- /dev/null +++ b/src/Wuzlstats/Views/Teams/_Player.cshtml @@ -0,0 +1,8 @@ +@model Wuzlstats.ViewModels.Teams.PlayerViewModel + +
+ + @Model.Name + +
@Model.Name
+