2017-10-07 08:52:59 +00:00
|
|
|
component OsuRankingList(users []*arn.User)
|
|
|
|
h1.page-title osu! ranking list
|
|
|
|
|
|
|
|
UsersTabs
|
|
|
|
|
2017-12-05 09:47:20 +00:00
|
|
|
table.ranking-list
|
2017-10-07 08:52:59 +00:00
|
|
|
thead
|
2017-10-09 09:05:25 +00:00
|
|
|
tr.mountable
|
2017-10-07 08:52:59 +00:00
|
|
|
th #
|
|
|
|
th Player
|
2017-12-05 10:28:29 +00:00
|
|
|
th.ranking-score Performance
|
2017-12-05 09:47:20 +00:00
|
|
|
th.ranking-accuracy Accuracy
|
2017-10-07 08:52:59 +00:00
|
|
|
tbody
|
|
|
|
for index, user := range users
|
2017-12-05 09:47:20 +00:00
|
|
|
tr.ranking.mountable
|
2017-10-07 08:52:59 +00:00
|
|
|
td= toString(index + 1) + "."
|
2017-12-05 09:57:44 +00:00
|
|
|
td.ranking-user
|
2017-10-07 08:52:59 +00:00
|
|
|
Avatar(user)
|
2017-10-09 09:05:25 +00:00
|
|
|
a.ajax(href=user.Link())= user.Nick
|
2017-12-05 09:47:20 +00:00
|
|
|
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
|
|
|
|
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"
|
2017-10-07 08:52:59 +00:00
|
|
|
|