Minor changes

This commit is contained in:
Eduard Urbach 2017-10-09 11:05:25 +02:00
parent 4272f57397
commit ff52fe0fa5

View File

@ -5,9 +5,10 @@ component OsuRankingList(users []*arn.User)
table.osu-ranking-list table.osu-ranking-list
thead thead
tr tr.mountable
th # th #
th Player th Player
th Name
th.osu-ranking-pp Performance th.osu-ranking-pp Performance
th.osu-ranking-accuracy Accuracy th.osu-ranking-accuracy Accuracy
tbody tbody
@ -16,6 +17,8 @@ component OsuRankingList(users []*arn.User)
td= toString(index + 1) + "." td= toString(index + 1) + "."
td td
Avatar(user) 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-pp= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
td.osu-ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%" td.osu-ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"