mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-29 14:19:48 -04:00
Fixes for the ladder team view.
This commit is contained in:
parent
5a436ce10b
commit
f383e5b9fa
2 changed files with 3 additions and 3 deletions
app
|
@ -42,7 +42,7 @@ block content
|
|||
td.name-cell= match.opponentName
|
||||
td.time-cell= match.when
|
||||
td.battle-cell
|
||||
a.button.btn(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{match.sessionID}") Battle!
|
||||
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{match.sessionID}") Battle!
|
||||
|
||||
else
|
||||
div.alert.alert-warning
|
||||
|
|
|
@ -73,8 +73,8 @@ module.exports = class LadderTeamView extends RootView
|
|||
ctx.challengers = if not @startsLoading then @getChallengers() else {}
|
||||
ctx.readyToRank = @readyToRank()
|
||||
|
||||
convertMatch = (match) ->
|
||||
opponent = match.opponent[0]
|
||||
convertMatch = (match) =>
|
||||
opponent = match.opponents[0]
|
||||
state = 'win'
|
||||
state = 'loss' if match.metrics.rank > opponent.metrics.rank
|
||||
state = 'tie' if match.metrics.rank is opponent.metrics.rank
|
||||
|
|
Loading…
Add table
Reference in a new issue