codecombat/app/templates/play/ladder.jade
2014-02-14 16:53:37 -08:00

38 lines
No EOL
1.2 KiB
Text

extends /templates/base
block content
div#level-column
h3= level.get('name')
div#level-description
!{description}
if me.isAdmin()
button.btn.btn-warning.btn-lg.highlight#simulate-button(style="margin-bottom:10px") Simulate all games
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
tr
td.score-cell= session.get('totalScore')
td= session.get('creatorName')
td
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}") COMPETE
//.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