codecombat/app/templates/play/ladder.jade

53 lines
1.9 KiB
Text
Raw Normal View History

2014-02-07 18:51:05 -05:00
extends /templates/base
block content
div#level-column
if levelDescription
div!= levelDescription
else
h1= level.get('name')
if me.get('anonymous')
div#must-log-in
p
2014-03-12 15:46:25 -04:00
strong(data-i18n="ladder.please_login") Please log in first before playing a ladder game.
button.btn.btn-primary(data-toggle="coco-modal", data-target="modal/login", data-i18n="login.log_in") Log In
button.btn.btn-primary(data-toggle="coco-modal", data-target="modal/signup", data-i18n="login.sign_up") Create Account
2014-02-14 19:53:34 -05:00
2014-02-13 18:57:07 -05:00
else
div#columns.row
2014-03-02 15:43:21 -05:00
div.column.col-md-2
for team in teams
2014-03-02 15:43:21 -05:00
div.column.col-md-4
a(style="background-color: #{team.primaryColor}", data-team=team.id).play-button.btn.btn-danger.btn-block.btn-lg
2014-03-12 15:46:25 -04:00
span(data-i18n="play.play_as") Play As
span= team.name
2014-03-02 15:43:21 -05:00
div.column.col-md-2
hr
ul.nav.nav-pills
li.active
2014-03-12 15:46:25 -04:00
a(href="#ladder", data-toggle="tab", data-i18n="general.ladder") Ladder
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
div.tab-content
.tab-pane.active.well#ladder
#ladder-tab-view
.tab-pane.well#my-matches
#my-matches-tab-view
2014-03-02 15:43:21 -05:00
.tab-pane.well#simulate
p(id="simulation-status-text")
if simulationStatus
| #{simulationStatus}
else
2014-03-12 15:46:25 -04:00
span(data-i18n="ladder.simulation_explanation") By simulating games you can get your game ranked faster!
2014-03-02 15:43:21 -05:00
p
2014-03-12 15:46:25 -04:00
button(data-i18n="ladder.simulate_games").btn.btn-warning.btn-lg.highlight#simulate-button Simulate Games!
2014-03-02 15:43:21 -05:00
if me.isAdmin()
p
2014-03-12 15:46:25 -04:00
button(data-i18n="ladder.simulate_all").btn.btn-danger.btn-lg.highlight#simulate-all-button RESET AND SIMULATE GAMES