Improved user lists

This commit is contained in:
2017-11-30 16:40:52 +01:00
parent 4f4a6e7f13
commit 5284698e73
9 changed files with 187 additions and 16 deletions

View File

@ -0,0 +1,22 @@
component OverwatchRankingList(users []*arn.User)
h1.page-title Overwatch ranking list
UsersTabs
table.osu-ranking-list
thead
tr.mountable
th #
th Player
th Name
th.osu-ranking-pp Skill Rating
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= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"