Fixed #638, I hope.

This commit is contained in:
Nick Winter 2014-03-21 08:09:08 -07:00
parent a3dadd6a40
commit b30bf35945
4 changed files with 8 additions and 7 deletions

View file

@ -13,6 +13,7 @@ block content
div.column.col-md-4
a(style="background-color: #{team.primaryColor}", data-team=team.id).play-button.btn.btn-danger.btn-block.btn-lg
span(data-i18n="play.play_as") Play As
|
span= team.name
div.column.col-md-2

View file

@ -27,7 +27,7 @@ div#columns.row
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}")
span(data-i18n="ladder.fight") Fight!
if !inTheTop && ! me.get('anonymous')
if !inTheTop && team.leaderboard.nearbySessions().length
tr(class="active")
td(colspan=4).ellipsis-row ...
for session in team.leaderboard.nearbySessions()

View file

@ -82,7 +82,7 @@ class LeaderboardData
return me.id in (session.attributes.creator for session in @topPlayers.models)
nearbySessions: ->
return unless @session
return [] unless @session
l = []
above = @playersAbove.models
above.reverse()