2014-03-02 15:43:21 -05:00
|
|
|
//if matches.length
|
|
|
|
// p#your-score
|
|
|
|
// span Your Current Score:
|
|
|
|
// span
|
|
|
|
// strong= score
|
|
|
|
|
|
|
|
div#columns.row
|
|
|
|
for team in teams
|
2014-03-02 16:24:41 -05:00
|
|
|
div.matches-column.col-md-6
|
2014-03-03 12:20:14 -05:00
|
|
|
table.table.table-bordered.table-condensed
|
2014-03-02 16:24:41 -05:00
|
|
|
|
2014-03-03 12:20:14 -05:00
|
|
|
tr
|
|
|
|
th(colspan=4, style="color: #{team.primaryColor}")
|
2014-03-09 21:46:11 -04:00
|
|
|
span Your #{team.name} Matches - #{team.wins} Wins, #{team.losses} Losses
|
2014-03-02 16:24:41 -05:00
|
|
|
|
2014-03-03 12:20:14 -05:00
|
|
|
if team.session
|
2014-03-02 16:24:41 -05:00
|
|
|
button.btn.btn-sm.btn-warning.pull-right.rank-button(data-session-id=team.session.id)
|
|
|
|
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
|
|
|
|
|
2014-03-03 12:20:14 -05:00
|
|
|
tr
|
|
|
|
th Result
|
|
|
|
th Opponent
|
|
|
|
th When
|
|
|
|
th
|
|
|
|
for match in team.matches
|
2014-03-02 15:43:21 -05:00
|
|
|
tr
|
2014-03-03 12:20:14 -05:00
|
|
|
td.state-cell
|
|
|
|
if match.state === 'win'
|
|
|
|
span.win Win
|
|
|
|
if match.state === 'loss'
|
|
|
|
span.loss Loss
|
|
|
|
if match.state === 'tie'
|
|
|
|
span.tie Tie
|
|
|
|
td.name-cell= match.opponentName || "Anonymous"
|
|
|
|
td.time-cell= match.when
|
|
|
|
td.battle-cell
|
|
|
|
- var text = match.state === 'win' ? 'Watch your victory' : 'Defeat the ' + team.otherTeam
|
2014-03-03 16:02:34 -05:00
|
|
|
a(href="/play/level/#{levelID}?team=#{team.id}&opponent=#{match.sessionID}")= text
|
2014-03-03 12:20:14 -05:00
|
|
|
|
|
|
|
if !team.matches.length
|
|
|
|
tr
|
|
|
|
td(colspan=4).alert.alert-warning
|
|
|
|
| No ranked matches for this team!
|
|
|
|
| Play against some competitors and then come back here to get your game ranked.
|
2014-03-02 15:43:21 -05:00
|
|
|
|