mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
23 lines
922 B
Text
23 lines
922 B
Text
div#columns.row
|
|
for team in teams
|
|
div.column.col-md-6
|
|
table.table.table-bordered.table-condensed.table-hover
|
|
tr
|
|
th(colspan=3, style="color: #{team.primaryColor}")
|
|
span= team.name
|
|
span Leaderboard
|
|
tr
|
|
th Score
|
|
th.name-col-cell Name
|
|
th
|
|
|
|
for session in team.leaderboard.topPlayers.models
|
|
- var myRow = session.get('creator') == me.id
|
|
tr(class=myRow ? "success" : "")
|
|
td.score-cell= session.get('totalScore').toFixed(2)
|
|
td.name-col-cell= session.get('creatorName') || "Anonymous"
|
|
td
|
|
if(!myRow)
|
|
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}") Battle as #{team.otherTeam}!
|
|
else
|
|
a(href="/play/ladder/#{levelID}/team/#{team.id}") View your #{team.id} matches.
|