Fixed #638, I hope.
This commit is contained in:
parent
a3dadd6a40
commit
b30bf35945
4 changed files with 8 additions and 7 deletions
app
|
@ -13,6 +13,7 @@ block content
|
||||||
div.column.col-md-4
|
div.column.col-md-4
|
||||||
a(style="background-color: #{team.primaryColor}", data-team=team.id).play-button.btn.btn-danger.btn-block.btn-lg
|
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(data-i18n="play.play_as") Play As
|
||||||
|
|
|
||||||
span= team.name
|
span= team.name
|
||||||
div.column.col-md-2
|
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}")
|
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}")
|
||||||
span(data-i18n="ladder.fight") Fight!
|
span(data-i18n="ladder.fight") Fight!
|
||||||
|
|
||||||
if !inTheTop && ! me.get('anonymous')
|
if !inTheTop && team.leaderboard.nearbySessions().length
|
||||||
tr(class="active")
|
tr(class="active")
|
||||||
td(colspan=4).ellipsis-row ...
|
td(colspan=4).ellipsis-row ...
|
||||||
for session in team.leaderboard.nearbySessions()
|
for session in team.leaderboard.nearbySessions()
|
||||||
|
|
|
@ -82,7 +82,7 @@ class LeaderboardData
|
||||||
return me.id in (session.attributes.creator for session in @topPlayers.models)
|
return me.id in (session.attributes.creator for session in @topPlayers.models)
|
||||||
|
|
||||||
nearbySessions: ->
|
nearbySessions: ->
|
||||||
return unless @session
|
return [] unless @session
|
||||||
l = []
|
l = []
|
||||||
above = @playersAbove.models
|
above = @playersAbove.models
|
||||||
above.reverse()
|
above.reverse()
|
||||||
|
|
Reference in a new issue