2017-10-07 08:52:59 +00:00
|
|
|
component OsuRankingList(users []*arn.User)
|
|
|
|
h1.page-title osu! ranking list
|
|
|
|
|
|
|
|
UsersTabs
|
|
|
|
|
|
|
|
table.osu-ranking-list
|
|
|
|
thead
|
2017-10-09 09:05:25 +00:00
|
|
|
tr.mountable
|
2017-10-07 08:52:59 +00:00
|
|
|
th #
|
|
|
|
th Player
|
2017-10-09 09:05:25 +00:00
|
|
|
th Name
|
2017-10-07 08:52:59 +00:00
|
|
|
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)
|
2017-10-09 09:05:25 +00:00
|
|
|
td
|
|
|
|
a.ajax(href=user.Link())= user.Nick
|
2017-10-07 08:52:59 +00:00
|
|
|
td.osu-ranking-pp= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
|
|
|
|
td.osu-ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"
|
|
|
|
|