Skip to content

Commit 9b91ee7

Browse files
committed
Make full ladders one-indexed
1 parent 5a3c851 commit 9b91ee7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zero-K.info/Views/Ladders/LaddersFull.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
var grid = new UniGrid<Indexed<Account>>(Model.Data, "Ladders");
1111

12-
grid.AddCol("Rank", x => string.Format("{0}.",x.Index));
12+
grid.AddCol("Rank", x => string.Format("{0}.",x.Index + 1));
1313
grid.AddCol("Player", x => Html.PrintAccount(x.Item));
1414
grid.AddCol("Ladder Rating", x => Math.Round(x.Item.AccountRatings.Where(r => r.RatingCategory == Model.RatingCategory).FirstOrDefault().Elo));
1515
grid.AddCol("True Rating", x => string.Format("{0} ± {1}", Math.Round(x.Item.AccountRatings.Where(r => r.RatingCategory == Model.RatingCategory).FirstOrDefault().RealElo), Math.Round(x.Item.AccountRatings.Where(r => r.RatingCategory == Model.RatingCategory).FirstOrDefault().EloStdev, 1)));

0 commit comments

Comments
 (0)