21 lines
587 B
Plaintext
Raw Normal View History

component OverwatchRankingList(users []*arn.User, url string)
2017-11-30 15:40:52 +00:00
h1.page-title Overwatch ranking list
UsersTabs(url)
2017-11-30 15:40:52 +00:00
2017-12-05 09:47:20 +00:00
table.ranking-list
2017-11-30 15:40:52 +00:00
thead
tr.mountable
th #
th Player
2017-12-05 10:31:14 +00:00
th.ranking-tier Tier
2018-02-06 16:50:20 +00:00
th.ranking-score Rating
2017-11-30 15:40:52 +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-11-30 15:40:52 +00:00
Avatar(user)
2018-04-18 12:05:44 +00:00
a.ranking-user-nick(href=user.Link())= user.Nick
2017-12-05 10:31:14 +00:00
td.ranking-tier= strings.Title(user.Accounts.Overwatch.Tier)
2017-12-05 09:47:20 +00:00
td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"
2017-11-30 15:40:52 +00:00