mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
74186b7772
2 changed files with 12 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
h4.home
|
h4.home
|
||||||
|
|
||||||
a(href="/")
|
a(href=homeLink || "/")
|
||||||
i.icon-home.icon-white
|
i.icon-home.icon-white
|
||||||
span(data-i18n="play_level.home") Home
|
span(data-i18n="play_level.home") Home
|
||||||
|
|
||||||
|
|
|
@ -47,12 +47,17 @@ module.exports = class ControlBarView extends View
|
||||||
text += " (#{numPlayers})" if numPlayers > 1
|
text += " (#{numPlayers})" if numPlayers > 1
|
||||||
$('#multiplayer-button', @$el).text(text)
|
$('#multiplayer-button', @$el).text(text)
|
||||||
|
|
||||||
getRenderData: (context={}) ->
|
getRenderData: (c={}) ->
|
||||||
super context
|
super c
|
||||||
context.worldName = @worldName
|
c.worldName = @worldName
|
||||||
context.multiplayerEnabled = @session.get('multiplayer')
|
c.multiplayerEnabled = @session.get('multiplayer')
|
||||||
context.ladderGame = @ladderGame
|
c.ladderGame = @ladderGame
|
||||||
context
|
c.homeLink = "/"
|
||||||
|
levelID = @level.get('slug')
|
||||||
|
if levelID in ["project-dota", "brawlwood", "ladder-tutorial"]
|
||||||
|
levelID = 'project-dota' if levelID is 'ladder-tutorial'
|
||||||
|
c.homeLink = "/play/ladder/" + levelID
|
||||||
|
c
|
||||||
|
|
||||||
showGuideModal: ->
|
showGuideModal: ->
|
||||||
options = {docs: @level.get('documentation'), supermodel: @supermodel}
|
options = {docs: @level.get('documentation'), supermodel: @supermodel}
|
||||||
|
|
Loading…
Reference in a new issue