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')
|
2014-02-20 14:57:04 -05:00
|
|
|
|
2014-02-24 17:57:51 -05:00
|
|
|
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
|
|
|
|
2014-02-24 17:57:51 -05:00
|
|
|
else
|
|
|
|
div#columns.row
|
2014-03-02 15:43:21 -05:00
|
|
|
div.column.col-md-2
|
2014-02-24 17:57:51 -05:00
|
|
|
for team in teams
|
2014-03-02 15:43:21 -05:00
|
|
|
div.column.col-md-4
|
2014-03-03 12:03:44 -05:00
|
|
|
a(style="background-color: #{team.primaryColor}", data-team=team.id).play-button.btn.btn-danger.btn-block.btn-lg
|
2014-02-24 17:57:51 -05:00
|
|
|
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
|
2014-03-02 16:24:41 -05:00
|
|
|
#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
|