2014-02-07 18:51:05 -05:00
|
|
|
extends /templates/base
|
|
|
|
block content
|
|
|
|
|
|
|
|
div#level-column
|
2014-03-03 17:59:39 -05:00
|
|
|
if levelDescription
|
|
|
|
div!= levelDescription
|
|
|
|
else
|
|
|
|
h1= level.get('name')
|
2014-02-20 14:57:04 -05:00
|
|
|
|
2014-03-16 23:28:02 -04:00
|
|
|
div#columns.row
|
|
|
|
div.column.col-md-2
|
|
|
|
for team in teams
|
|
|
|
div.column.col-md-4
|
|
|
|
a(style="background-color: #{team.primaryColor}", data-team=team.id).play-button.btn.btn-danger.btn-block.btn-lg
|
|
|
|
span(data-i18n="play.play_as") Play As
|
2014-03-21 11:09:08 -04:00
|
|
|
|
|
2014-03-16 23:28:02 -04:00
|
|
|
span= team.name
|
|
|
|
div.column.col-md-2
|
|
|
|
|
2014-03-16 23:36:18 -04:00
|
|
|
.spectate-button-container
|
|
|
|
a(href="/play/spectate/#{level.get('slug')}").spectate-button.btn.btn-primary.center
|
2014-03-16 23:32:24 -04:00
|
|
|
span(data-i18n="play.spectate") Spectate
|
|
|
|
|
2014-03-16 23:28:02 -04:00
|
|
|
hr
|
2014-03-02 15:43:21 -05:00
|
|
|
|
2014-03-16 23:28:02 -04:00
|
|
|
ul.nav.nav-pills
|
|
|
|
li.active
|
|
|
|
a(href="#ladder", data-toggle="tab", data-i18n="general.ladder") Ladder
|
|
|
|
if !me.get('anonymous')
|
2014-03-02 15:43:21 -05:00
|
|
|
li
|
2014-03-12 15:46:25 -04:00
|
|
|
a(href="#my-matches", data-toggle="tab", data-i18n="ladder.my_matches") My Matches
|
2014-03-02 15:43:21 -05:00
|
|
|
li
|
2014-03-12 15:46:25 -04:00
|
|
|
a(href="#simulate", data-toggle="tab", data-i18n="ladder.simulate") Simulate
|
2014-03-02 15:43:21 -05:00
|
|
|
|
2014-03-16 23:28:02 -04:00
|
|
|
div.tab-content
|
|
|
|
.tab-pane.active.well#ladder
|
|
|
|
#ladder-tab-view
|
|
|
|
.tab-pane.well#my-matches
|
|
|
|
#my-matches-tab-view
|
|
|
|
.tab-pane.well#simulate
|
|
|
|
p(id="simulation-status-text")
|
|
|
|
if simulationStatus
|
|
|
|
| #{simulationStatus}
|
|
|
|
else
|
|
|
|
span(data-i18n="ladder.simulation_explanation") By simulating games you can get your game ranked faster!
|
|
|
|
p
|
|
|
|
button(data-i18n="ladder.simulate_games").btn.btn-warning.btn-lg.highlight#simulate-button Simulate Games!
|
2014-03-17 00:33:46 -04:00
|
|
|
if false && me.isAdmin()
|
2014-03-02 15:43:21 -05:00
|
|
|
p
|
2014-03-16 23:36:18 -04:00
|
|
|
button(data-i18n="ladder.simulate_all").btn.btn-danger.btn-lg.highlight#simulate-all-button RESET AND SIMULATE GAMES
|
2014-03-20 18:40:02 -04:00
|
|
|
|
|
|
|
p.simulation-count
|
|
|
|
span(data-i18n="ladder.games_simulated_by") Games simulated by you:
|
|
|
|
|
|
|
|
|
span#simulated-by-you= me.get('simulatedBy') || 0
|
|
|
|
|
|
|
|
p.simulation-count
|
2014-03-20 22:18:46 -04:00
|
|
|
span(data-i18n="ladder.games_simulated_for") Games simulated for you:
|
2014-03-20 18:40:02 -04:00
|
|
|
|
|
2014-04-12 17:13:26 -04:00
|
|
|
span#simulated-for-you= me.get('simulatedFor') || 0
|
|
|
|
|
|
|
|
table.table.table-bordered.table-condensed.table-hover
|
|
|
|
tr
|
|
|
|
th(data-i18n="general.name").name-col-cell Name
|
|
|
|
th(data-i18n="general.gamessimulated") Games simulated
|
|
|
|
th(data-i18n="general.gamesplayed") Games played
|
|
|
|
th(data-i18n="general.ratio") Ratio
|
|
|
|
- var topSimulators = simulatorsLeaderboardData.topSimulators.models;
|
|
|
|
- var showJustTop = simulatorsLeaderboardData.inTopSimulators() || me.get('anonymous');
|
|
|
|
- if(!showJustTop) topSimulators = topSimulators.slice(0, 10);
|
|
|
|
for user in topSimulators
|
|
|
|
- var myRow = user.id == me.id
|
|
|
|
tr(class=myRow ? "success" : "")
|
|
|
|
td.name-col-cell= user.get('name') || "Anonymous"
|
|
|
|
td.simulator-leaderboard-cell= user.get('simulatedBy')
|
|
|
|
td.simulator-leaderboard-cell= user.get('simulatedFor')
|
|
|
|
td.simulator-leaderboard-cell= Math.round((user.get('simulatedBy') / user.get('simulatedFor')) * 10) / 10
|
|
|
|
|
|
|
|
if !showJustTop && simulatorsLeaderboardData.nearbySimulators().length
|
|
|
|
tr(class="active")
|
|
|
|
td(colspan=4).ellipsis-row ...
|
|
|
|
for user in simulatorsLeaderboardData.nearbySimulators()
|
|
|
|
- var myRow = user.id == me.id
|
|
|
|
tr(class=myRow ? "success" : "")
|
|
|
|
td.name-col-cell= user.get('name') || "Anonymous"
|
|
|
|
td.simulator-leaderboard-cell= user.get('simulatedBy')
|
|
|
|
td.simulator-leaderboard-cell= user.get('simulatedFor')
|
|
|
|
td.simulator-leaderboard-cell= Math.round((user.get('simulatedBy') / user.get('simulatedFor')) * 10) / 10
|