Added "Rank your session" message
This commit is contained in:
parent
bd1261802d
commit
ab1b0cac42
1 changed files with 5 additions and 2 deletions
|
@ -242,8 +242,11 @@ module.exports = class LadderTabView extends CocoView
|
||||||
if teamName.toLowerCase() is "humans" then rankClass = "rank-text humans-rank-text"
|
if teamName.toLowerCase() is "humans" then rankClass = "rank-text humans-rank-text"
|
||||||
|
|
||||||
message = "#{histogramData.length} players"
|
message = "#{histogramData.length} players"
|
||||||
if @leaderboards[teamName].session? and @leaderboards[teamName].myRank <= histogramData.length
|
if @leaderboards[teamName].session?
|
||||||
|
if @leaderboards[teamName].myRank <= histogramData.length
|
||||||
message="##{@leaderboards[teamName].myRank} of #{histogramData.length}"
|
message="##{@leaderboards[teamName].myRank} of #{histogramData.length}"
|
||||||
|
else
|
||||||
|
message="Rank your session!"
|
||||||
svg.append("g")
|
svg.append("g")
|
||||||
.append("text")
|
.append("text")
|
||||||
.attr("class",rankClass)
|
.attr("class",rankClass)
|
||||||
|
|
Reference in a new issue