2017-10-09 11:05:25 +02:00

24 lines
589 B
Plaintext

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