mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
25 lines
No EOL
1 KiB
Text
25 lines
No EOL
1 KiB
Text
div#columns.row
|
|
for team in teams
|
|
div.column.col-md-6
|
|
table.table.table-bordered.table-condensed.table-hover
|
|
tr
|
|
th(colspan=4, style="color: #{team.primaryColor}")
|
|
span= team.name
|
|
span
|
|
span(data-i18n="ladder.leaderboard") Leaderboard
|
|
tr
|
|
th(data-i18n="general.rank") Rank
|
|
th(data-i18n="general.score") Score
|
|
th(data-i18n="general.name").name-col-cell Name
|
|
th
|
|
|
|
for session, rank in team.leaderboard.topPlayers.models
|
|
- var myRow = session.get('creator') == me.id
|
|
tr(class=myRow ? "success" : "")
|
|
td.rank-cell= rank + 1
|
|
td.score-cell= Math.round(session.get('totalScore') * 100)
|
|
td.name-col-cell= session.get('creatorName') || "Anonymous"
|
|
td
|
|
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}")
|
|
span(data-i18n="ladder.battle_as") Battle as
|
|
| #{team.otherTeam}! |