mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Ladder views now show level descvription content if present.
This commit is contained in:
parent
e231952fcf
commit
c944e78271
2 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,10 @@ extends /templates/base
|
|||
block content
|
||||
|
||||
div#level-column
|
||||
h1= level.get('name')
|
||||
if levelDescription
|
||||
div!= levelDescription
|
||||
else
|
||||
h1= level.get('name')
|
||||
|
||||
if me.get('anonymous')
|
||||
div#must-log-in
|
||||
|
|
|
@ -57,6 +57,7 @@ module.exports = class LadderView extends RootView
|
|||
ctx.simulationStatus = @simulationStatus
|
||||
ctx.teams = @teams
|
||||
ctx.levelID = @levelID
|
||||
ctx.levelDescription = marked(@level.get('description')) if @level.get('description')
|
||||
ctx
|
||||
|
||||
afterRender: ->
|
||||
|
|
Loading…
Reference in a new issue