codecombat/app/templates/play/ladder.jade

53 lines
1.7 KiB
Text
Raw Normal View History

2014-02-07 18:51:05 -05:00
extends /templates/base
block content
div#level-column
2014-03-02 15:43:21 -05:00
h1= level.get('name')
//if !me.get('anonymous')
// a(href="/play/level/brawlwood-tutorial").intro-button.btn.btn-primary.btn-lg Play the Tutorial
if me.get('anonymous')
div#must-log-in
p
strong 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(href="/play/ladder/#{levelID}/team/#{team.id}", style="background-color: #{team.primaryColor}").play-button.btn.btn-danger.btn-block.btn-lg
span 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
a(href="#ladder", data-toggle="tab") Ladder
li
a(href="#my-matches", data-toggle="tab") My Matches
li
a(href="#simulate", data-toggle="tab") Simulate
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
| By simulating games you can get your game ranked faster!
p
button.btn.btn-warning.btn-lg.highlight#simulate-button() Simulate Games!
if me.isAdmin()
p
button.btn.btn-danger.btn-lg.highlight#simulate-all-button() RESET AND SIMULATE GAMES