Improved osu ranking list

This commit is contained in:
2017-10-07 10:52:59 +02:00
parent 2d71b2408e
commit 5becba19de
4 changed files with 47 additions and 18 deletions

21
pages/users/osu.pixy Normal file
View File

@ -0,0 +1,21 @@
component OsuRankingList(users []*arn.User)
h1.page-title osu! ranking list
UsersTabs
table.osu-ranking-list
thead
tr
th #
th Player
th.osu-ranking-pp Performance
th.osu-ranking-accuracy Accuracy
tbody
for index, user := range users
tr.osu-ranking.mountable
td= toString(index + 1) + "."
td
Avatar(user)
td.osu-ranking-pp= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
td.osu-ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"