codecombat/app/templates/play/ladder/team.jade

113 lines
3.7 KiB
Text
Raw Normal View History

2014-02-17 20:42:41 -05:00
extends /templates/base
block content
ol.breadcrumb
li
a(href="/") Home
li
a(href="/play/ladder/#{levelID}")= level.get('name')
li.active= teamName
2014-02-18 14:38:49 -05:00
p
| In this level, you play against everyone who has ever written strategies for the opposing forces.
| Choose from the suggested players on the right, playing as many and as long as you like,
2014-02-20 16:58:35 -05:00
| and when you are ready to test your grand strategy against the whole ladder, return and click the rank button.
2014-02-18 14:38:49 -05:00
p
| After your first submission, your code will also continuously run against other players as they rank themselves.
if matches.length
p#your-score
span Your Current Score:
span
strong= score
2014-02-17 20:42:41 -05:00
div#columns.row
div#matches-column.col-md-6
2014-02-18 14:38:49 -05:00
h3.pull-left Ranked Games
button.btn.btn-warning.pull-right#rank-button
span.unavailable.hidden No New Code to Rank
span.rank.hidden Rank My Game!
span.ranking.hidden Submitting...
span.ranked.hidden Submitted for Ranking
span.failed.hidden Failed to Rank
hr.clearfix(style="clear: both")
2014-02-17 20:42:41 -05:00
if matches.length
table.table.table-bordered.table-condensed
2014-02-20 16:58:35 -05:00
tr
th Result
th Opponent
th When
2014-02-17 20:42:41 -05:00
for match in matches
tr
td.state-cell
if match.state === 'win'
span.win Win
if match.state === 'loss'
span.loss Loss
if match.state === 'tie'
span.tie Tie
2014-02-20 13:56:32 -05:00
td.name-cell= match.opponentName || "Anonymous"
2014-02-17 20:42:41 -05:00
td.time-cell= match.when
td.battle-cell
2014-02-20 16:58:35 -05:00
- var text = match.state === 'win' ? 'Watch your victory' : 'Defeat the ' + otherTeamID
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{match.sessionID}")= text
2014-02-17 20:42:41 -05:00
else
div.alert.alert-warning
| No ranked matches played yet!
| Play some competitors on the right and then come back to get your game ranked.
// finish this once matches are available
div#competitors-column.col-md-6
h3 Your Competitors
.well.text-muted
div.row
div.col-md-2
span.warmup Warmup
span :
div.col-md-10
a(href="/play/level/#{levelID}?team=#{teamID}")
2014-02-20 16:58:35 -05:00
span.warmup Play #{teamID} vs Default #{otherTeamID}
2014-02-17 20:42:41 -05:00
if challengers.easy
.well
div.row.text-info.bg-info
div.col-md-2
span.easy Easy
span :
div.col-md-10
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.easy.sessionID}")
2014-02-20 16:58:35 -05:00
span Play #{teamID} vs
strong= challengers.easy.opponentName
span #{otherTeamID}
2014-02-17 20:42:41 -05:00
if challengers.medium
.well
div.row.text-warning.bg-warning
div.col-md-2
span.medium Medium
span :
div.col-md-10
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.medium.sessionID}")
2014-02-20 16:58:35 -05:00
span Play #{teamID} vs
strong= challengers.medium.opponentName
span #{otherTeamID}
2014-02-17 20:42:41 -05:00
if challengers.hard
.well
div.row.text-danger.bg-danger
div.col-md-2
span.hard Hard
span :
div.col-md-10
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.hard.sessionID}")
2014-02-20 16:58:35 -05:00
span Play #{teamID} vs
strong= challengers.hard.opponentName
span #{otherTeamID}