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-14 19:53:34 -05:00
|
|
|
if me.isAdmin()
|
|
|
|
button.btn.btn-warning.btn-lg.highlight#simulate-button(style="margin-bottom:10px") Simulate all games
|
|
|
|
|
2014-02-07 18:51:05 -05:00
|
|
|
div#leaderboard-column
|
|
|
|
ul.nav.nav-pills
|
|
|
|
for team in teams
|
|
|
|
li
|
|
|
|
a(href="#team-#{team.id}", data-toggle="tab")= team.name
|
|
|
|
|
|
|
|
.tab-content
|
|
|
|
for team in teams
|
|
|
|
.tab-pane(id="team-#{team.id}")
|
|
|
|
.leaderboard
|
|
|
|
h4 Leaderboard
|
|
|
|
table.table
|
|
|
|
for session in team.leaderboard.topPlayers.models
|
2014-02-13 18:57:07 -05:00
|
|
|
tr
|
2014-02-13 20:34:31 -05:00
|
|
|
td.score-cell= session.get('totalScore')
|
2014-02-13 18:57:07 -05:00
|
|
|
td= session.get('creatorName')
|
2014-02-13 19:42:35 -05:00
|
|
|
td
|
|
|
|
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}") COMPETE
|
2014-02-13 18:57:07 -05:00
|
|
|
|
2014-02-13 18:09:40 -05:00
|
|
|
//.challengers
|
|
|
|
// h4 Challengers
|
|
|
|
//
|
|
|
|
// if team.easyChallenger
|
|
|
|
// div.challenger-select
|
|
|
|
// | Easy challenger:
|
|
|
|
// button
|
|
|
|
// a(href=link+'?team='+team.id+'&opponent='+team.easyChallenger.id)
|
|
|
|
// TODO: finish once the scoring system is finished
|