2014-02-07 18:51:05 -05:00
|
|
|
extends /templates/base
|
|
|
|
block content
|
|
|
|
|
|
|
|
div#level-column
|
|
|
|
h3= level.get('name')
|
|
|
|
div#level-description
|
|
|
|
!{description}
|
2014-02-17 20:42:41 -05:00
|
|
|
|
|
|
|
hr
|
|
|
|
div#columns.row
|
|
|
|
for team in teams
|
|
|
|
div.column.col-md-6
|
|
|
|
a(href="/play/ladder/#{levelID}/team/#{team.id}", style="background-color: #{team.primaryColor}").play-button.btn.btn-danger.btn-block.btn-lg
|
|
|
|
span Play
|
|
|
|
span= team.name
|
|
|
|
|
2014-02-20 12:44:44 -05:00
|
|
|
table.table.table-bordered.table-condensed.table-hover
|
2014-02-17 20:42:41 -05:00
|
|
|
tr
|
|
|
|
th(colspan=3, style="color: #{team.primaryColor}")
|
|
|
|
span= team.name
|
|
|
|
span Leaderboard
|
2014-02-20 12:44:44 -05:00
|
|
|
tr
|
|
|
|
th Score
|
|
|
|
th Name
|
2014-02-14 19:53:34 -05:00
|
|
|
|
2014-02-17 20:42:41 -05:00
|
|
|
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)
|
2014-02-20 12:44:44 -05:00
|
|
|
td= session.get('creatorName') || "Anonymous"
|
2014-02-17 20:42:41 -05:00
|
|
|
td
|
|
|
|
if(!myRow)
|
2014-02-20 12:44:44 -05:00
|
|
|
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}") Compete!
|
2014-02-20 11:39:27 -05:00
|
|
|
else
|
|
|
|
a(href="/play/ladder/#{levelID}/team/#{team.id}") View details
|
2014-02-13 18:57:07 -05:00
|
|
|
|
2014-02-20 11:06:11 -05:00
|
|
|
unless me.attributes.anonymous
|
2014-02-17 20:42:41 -05:00
|
|
|
hr
|
2014-02-20 11:06:11 -05:00
|
|
|
button.btn.btn-warning.btn-lg.highlight#simulate-button(style="margin-bottom:10px;") Simulate Games!
|
2014-02-20 12:44:44 -05:00
|
|
|
p(id="simulationStatusText", style="display:inline; margin-left:10px;")
|
2014-02-20 11:06:11 -05:00
|
|
|
if simulationStatus
|
|
|
|
| #{simulationStatus}
|
|
|
|
else
|
|
|
|
| By simulating games you can get your game ranked faster!
|
|
|
|
if me.isAdmin()
|
2014-02-20 12:44:44 -05:00
|
|
|
button.btn.btn-danger.btn-lg.highlight#simulate-all-button(style="margin-bottom:10px; float: right;") RESET AND SIMULATE GAMES
|