24 lines
568 B
Plaintext
Raw Normal View History

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-10-09 09:05:25 +00:00
th Name
2017-12-05 09:47:20 +00:00
th.ranking-pp Performance
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) + "."
td
Avatar(user)
2017-10-09 09:05:25 +00:00
td
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