2015-09-08 09:44:26 -04:00
|
|
|
.row
|
2016-06-08 23:31:53 -04:00
|
|
|
for team in view.teams
|
2014-03-02 16:24:41 -05:00
|
|
|
div.matches-column.col-md-6
|
2015-09-08 09:44:26 -04:00
|
|
|
table.table.table-bordered.table-condensed.my-matches-table
|
2014-03-02 16:24:41 -05:00
|
|
|
|
2014-03-03 12:20:14 -05:00
|
|
|
tr
|
2014-07-13 23:19:51 -04:00
|
|
|
th(colspan=5, style="color: #{team.primaryColor}")
|
2014-04-02 21:41:10 -04:00
|
|
|
span(data-i18n="ladder.summary_your") Your
|
2015-09-03 18:46:56 -04:00
|
|
|
|#{team.displayName}
|
2014-03-12 23:59:19 -04:00
|
|
|
|
|
2014-04-02 21:41:10 -04:00
|
|
|
span(data-i18n="ladder.summary_matches") Matches -
|
2014-03-12 16:13:01 -04:00
|
|
|
|#{team.wins}
|
2014-04-02 21:41:10 -04:00
|
|
|
span(data-i18n="ladder.summary_wins") Wins,
|
2014-03-12 16:13:01 -04:00
|
|
|
|#{team.losses}
|
2014-04-02 21:41:10 -04:00
|
|
|
span(data-i18n="ladder.summary_losses") Losses
|
2014-03-02 16:24:41 -05:00
|
|
|
|
2014-03-16 21:48:56 -04:00
|
|
|
if team.session
|
|
|
|
tr
|
2014-07-13 23:19:51 -04:00
|
|
|
th(colspan=5)
|
2014-05-17 14:55:41 -04:00
|
|
|
.ladder-submission-view(data-session-id=team.session.id)
|
2014-03-02 16:24:41 -05:00
|
|
|
|
2014-05-17 14:55:41 -04:00
|
|
|
if team.scoreHistory
|
2014-03-11 00:30:46 -04:00
|
|
|
tr
|
2014-07-13 23:19:51 -04:00
|
|
|
th(colspan=5, style="color: #{team.primaryColor}")
|
2014-04-02 21:41:10 -04:00
|
|
|
div(class="score-chart-wrapper", data-team-name=team.name, id="score-chart-#{team.name}")
|
|
|
|
|
2014-03-03 12:20:14 -05:00
|
|
|
tr
|
2014-03-12 16:13:01 -04:00
|
|
|
th(data-i18n="general.result") Result
|
2014-07-13 23:19:51 -04:00
|
|
|
th
|
2014-03-12 16:13:01 -04:00
|
|
|
th(data-i18n="general.opponent") Opponent
|
|
|
|
th(data-i18n="general.when") When
|
2014-03-03 12:20:14 -05:00
|
|
|
th
|
|
|
|
for match in team.matches
|
2015-02-11 23:24:12 -05:00
|
|
|
tr(class=(match.stale ? "stale " : "") + (match.fresh ? "fresh " : "") + match.state, title=match.simulator)
|
2014-03-03 12:20:14 -05:00
|
|
|
td.state-cell
|
|
|
|
if match.state === 'win'
|
2014-03-12 16:13:01 -04:00
|
|
|
span(data-i18n="general.win").win Win
|
2014-03-03 12:20:14 -05:00
|
|
|
if match.state === 'loss'
|
2014-03-12 16:13:01 -04:00
|
|
|
span(data-i18n="general.loss").loss Loss
|
2014-03-03 12:20:14 -05:00
|
|
|
if match.state === 'tie'
|
2014-03-12 16:13:01 -04:00
|
|
|
span(data-i18n="general.tie").tie Tie
|
2014-07-17 23:12:59 -04:00
|
|
|
td.code-language-cell(style="background-image: url(/images/common/code_languages/" + match.codeLanguage + "_icon.png)")
|
2014-03-03 12:20:14 -05:00
|
|
|
td.name-cell= match.opponentName || "Anonymous"
|
|
|
|
td.time-cell= match.when
|
|
|
|
td.battle-cell
|
2016-06-08 23:31:53 -04:00
|
|
|
- var levelID = view.level.get('slug') || view.level.id
|
|
|
|
- var league = view.options.league
|
2015-09-04 19:21:35 -04:00
|
|
|
a(href="/play/level/#{levelID}?team=#{team.id}&opponent=#{match.sessionID}" + (league ? "&league=" + league.id : ""))
|
2014-03-18 05:18:38 -04:00
|
|
|
if (match.state === 'win')
|
|
|
|
span(data-i18n="ladder.watch_victory") Watch your victory
|
|
|
|
else
|
|
|
|
span(data-i18n="ladder.defeat_the") Defeat the
|
2014-03-19 21:26:38 -04:00
|
|
|
|
|
2015-09-03 18:46:56 -04:00
|
|
|
| #{team.otherTeamDisplayName}
|
2014-03-03 12:20:14 -05:00
|
|
|
|
|
|
|
if !team.matches.length
|
|
|
|
tr
|
2014-03-11 19:31:39 -04:00
|
|
|
if team.isRanking
|
|
|
|
td(colspan=4).alert.alert-info
|
2014-03-12 16:13:01 -04:00
|
|
|
span(data-i18n="ladder.code_being_simulated")
|
2014-03-12 16:23:25 -04:00
|
|
|
| Your new code is being simulated by other players for ranking.
|
|
|
|
| This will refresh as new matches come in.
|
2014-03-11 19:31:39 -04:00
|
|
|
else
|
|
|
|
td(colspan=4).alert.alert-warning
|
2014-03-12 16:13:01 -04:00
|
|
|
span(data-i18n="ladder.no_ranked_matches_pre") No ranked matches for the
|
2014-03-12 16:23:25 -04:00
|
|
|
| #{team.name}
|
2014-03-12 16:13:01 -04:00
|
|
|
span(data-i18n="ladder.no_ranked_matches_post") team! Play against some competitors and then come back here to get your game ranked.
|