mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed #638, I hope.
This commit is contained in:
parent
a3dadd6a40
commit
b30bf35945
4 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue