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

64 lines
2.5 KiB
Text
Raw Normal View History

2014-03-02 15:43:21 -05:00
div#columns.row
for team in teams
div.matches-column.col-md-6
table.table.table-bordered.table-condensed
tr
th(colspan=4, style="color: #{team.primaryColor}")
2014-04-02 21:41:10 -04:00
span(data-i18n="ladder.summary_your") Your
2014-03-12 16:13:01 -04:00
|#{team.name}
|
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
if team.session
tr
th(colspan=4)
.ladder-submission-view(data-session-id=team.session.id)
if team.scoreHistory
tr
th(colspan=4, 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}")
tr
2014-03-12 16:13:01 -04:00
th(data-i18n="general.result") Result
th(data-i18n="general.opponent") Opponent
th(data-i18n="general.when") When
th
for match in team.matches
tr(class=(match.stale ? "stale " : "") + match.state)
td.state-cell
if match.state === 'win'
2014-03-12 16:13:01 -04:00
span(data-i18n="general.win").win Win
if match.state === 'loss'
2014-03-12 16:13:01 -04:00
span(data-i18n="general.loss").loss Loss
if match.state === 'tie'
2014-03-12 16:13:01 -04:00
span(data-i18n="general.tie").tie Tie
td.name-cell= match.opponentName || "Anonymous"
td.time-cell= match.when
td.battle-cell
2014-03-18 05:18:38 -04:00
a(href="/play/level/#{levelID}?team=#{team.id}&opponent=#{match.sessionID}")
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
|
2014-03-18 05:18:38 -04:00
| #{team.otherTeam}
if !team.matches.length
tr
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.
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.