mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-01-22 04:09:47 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
5259a86d3a
2 changed files with 14 additions and 10 deletions
|
@ -57,6 +57,7 @@ block content
|
||||||
select.level-select.form-control
|
select.level-select.form-control
|
||||||
if view.campaigns.loaded
|
if view.campaigns.loaded
|
||||||
- var campaign = view.campaigns.get(course.get('campaignID'))
|
- var campaign = view.campaigns.get(course.get('campaignID'))
|
||||||
|
if campaign
|
||||||
each level, levelIndex in campaign.getLevels().models
|
each level, levelIndex in campaign.getLevels().models
|
||||||
- var levelNumber = campaign.getLevelNumber(level.get('original'), levelIndex + 1)
|
- var levelNumber = campaign.getLevelNumber(level.get('original'), levelIndex + 1)
|
||||||
option(value=level.get('slug'))
|
option(value=level.get('slug'))
|
||||||
|
|
|
@ -157,7 +157,10 @@ module.exports = class ClassroomView extends RootView
|
||||||
course = session.collection.course
|
course = session.collection.course
|
||||||
levelOriginal = session.get('level').original
|
levelOriginal = session.get('level').original
|
||||||
level = @levels.findWhere({original: levelOriginal})
|
level = @levels.findWhere({original: levelOriginal})
|
||||||
return "#{course.get('name')}, #{level.get('name')}"
|
lastPlayed = ""
|
||||||
|
lastPlayed += course.get('name') if course
|
||||||
|
lastPlayed += ", #{level.get('name')}" if level
|
||||||
|
lastPlayed
|
||||||
|
|
||||||
userPlaytimeString: (user) ->
|
userPlaytimeString: (user) ->
|
||||||
return '' unless user.sessions?
|
return '' unless user.sessions?
|
||||||
|
|
Loading…
Reference in a new issue