Improved ranking lists
This commit is contained in:
parent
74c169021e
commit
b5512a4661
@ -8,16 +8,14 @@ component OsuRankingList(users []*arn.User)
|
||||
tr.mountable
|
||||
th #
|
||||
th Player
|
||||
th Name
|
||||
th.ranking-pp Performance
|
||||
th.ranking-accuracy Accuracy
|
||||
tbody
|
||||
for index, user := range users
|
||||
tr.ranking.mountable
|
||||
td= toString(index + 1) + "."
|
||||
td
|
||||
td.ranking-user
|
||||
Avatar(user)
|
||||
td
|
||||
a.ajax(href=user.Link())= user.Nick
|
||||
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
|
||||
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"
|
||||
|
@ -8,15 +8,13 @@ component OverwatchRankingList(users []*arn.User)
|
||||
tr.mountable
|
||||
th #
|
||||
th Player
|
||||
th Name
|
||||
th.ranking-pp Skill Rating
|
||||
tbody
|
||||
for index, user := range users
|
||||
tr.ranking.mountable
|
||||
td= toString(index + 1) + "."
|
||||
td
|
||||
td.ranking-user
|
||||
Avatar(user)
|
||||
td
|
||||
a.ajax(href=user.Link())= user.Nick
|
||||
td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"
|
||||
|
@ -1,16 +1,21 @@
|
||||
.ranking-list
|
||||
max-width 400px
|
||||
|
||||
.user-image
|
||||
width calc(avatar-size / 2)
|
||||
height calc(avatar-size / 2)
|
||||
|
||||
.ranking
|
||||
width 100%
|
||||
|
||||
td
|
||||
vertical-align middle
|
||||
|
||||
.ranking-user
|
||||
horizontal
|
||||
align-items center
|
||||
|
||||
.user-image
|
||||
width calc(avatar-size / 2)
|
||||
height calc(avatar-size / 2)
|
||||
margin-right 1rem
|
||||
|
||||
.ranking-score,
|
||||
.ranking-accuracy
|
||||
text-align right
|
@ -1,7 +1,7 @@
|
||||
mixin tag-dimensions
|
||||
padding 0.4rem 0.8rem
|
||||
margin 0.4rem
|
||||
height 40px
|
||||
height 38px
|
||||
|
||||
.tags
|
||||
horizontal-wrap
|
||||
|
Loading…
Reference in New Issue
Block a user