Improved ranking lists

This commit is contained in:
2017-12-05 10:57:44 +01:00
parent 74c169021e
commit b5512a4661
4 changed files with 12 additions and 11 deletions

View File

@ -8,16 +8,14 @@ component OsuRankingList(users []*arn.User)
tr.mountable
th #
th Player
th Name
th.ranking-pp Performance
th.ranking-accuracy Accuracy
tbody
for index, user := range users
tr.ranking.mountable
td= toString(index + 1) + "."
td
td.ranking-user
Avatar(user)
td
a.ajax(href=user.Link())= user.Nick
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"