21 lines
597 B
Plaintext
Raw Normal View History

component OsuRankingList(users []*arn.User, url string)
2017-10-07 08:52:59 +00:00
h1.page-title osu! ranking list
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
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
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