2018-03-10 15:42:39 +00:00
|
|
|
component OsuRankingList(users []*arn.User, url string)
|
2017-10-07 08:52:59 +00:00
|
|
|
h1.page-title osu! ranking list
|
2018-03-10 15:42:39 +00:00
|
|
|
UsersTabs(url)
|
2017-10-07 08:52:59 +00:00
|
|
|
|
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
|
2018-04-25 20:15:42 +00:00
|
|
|
td= fmt.Sprint(index + 1) + "."
|
2017-12-05 09:57:44 +00:00
|
|
|
td.ranking-user
|
2017-10-07 08:52:59 +00:00
|
|
|
Avatar(user)
|
2018-04-18 12:05:44 +00:00
|
|
|
a.ranking-user-nick(href=user.Link())= user.Nick
|
2018-04-25 20:15:42 +00:00
|
|
|
td.ranking-score= fmt.Sprint(int(user.Accounts.Osu.PP + 0.5)) + " pp"
|
2017-12-05 09:47:20 +00:00
|
|
|
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"
|
2017-10-07 08:52:59 +00:00
|
|
|
|