2014-03-02 15:43:21 -05:00
|
|
|
div#columns.row
|
|
|
|
for team in teams
|
|
|
|
div.column.col-md-6
|
|
|
|
table.table.table-bordered.table-condensed.table-hover
|
|
|
|
tr
|
2014-03-08 18:43:56 -05:00
|
|
|
th(colspan=4, style="color: #{team.primaryColor}")
|
2014-03-02 15:43:21 -05:00
|
|
|
span= team.name
|
|
|
|
span Leaderboard
|
|
|
|
tr
|
2014-03-08 18:43:56 -05:00
|
|
|
th Rank
|
2014-03-02 15:43:21 -05:00
|
|
|
th Score
|
|
|
|
th.name-col-cell Name
|
|
|
|
th
|
|
|
|
|
2014-03-08 18:43:56 -05:00
|
|
|
for session, rank in team.leaderboard.topPlayers.models
|
2014-03-02 15:43:21 -05:00
|
|
|
- var myRow = session.get('creator') == me.id
|
|
|
|
tr(class=myRow ? "success" : "")
|
2014-03-08 18:43:56 -05:00
|
|
|
td.rank-cell= rank + 1
|
2014-03-03 15:27:32 -05:00
|
|
|
td.score-cell= Math.round(session.get('totalScore') * 100)
|
2014-03-02 15:43:21 -05:00
|
|
|
td.name-col-cell= session.get('creatorName') || "Anonymous"
|
|
|
|
td
|
2014-03-03 14:11:27 -05:00
|
|
|
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}")
|
2014-03-03 15:08:11 -05:00
|
|
|
span Battle as #{team.otherTeam}!
|