mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fix for when database courses/campaigns don't match
This commit is contained in:
parent
01a8312617
commit
6fdda491bd
1 changed files with 10 additions and 9 deletions
|
@ -57,15 +57,16 @@ 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'))
|
||||||
each level, levelIndex in campaign.getLevels().models
|
if campaign
|
||||||
- var levelNumber = campaign.getLevelNumber(level.get('original'), levelIndex + 1)
|
each level, levelIndex in campaign.getLevels().models
|
||||||
option(value=level.get('slug'))
|
- var levelNumber = campaign.getLevelNumber(level.get('original'), levelIndex + 1)
|
||||||
span
|
option(value=level.get('slug'))
|
||||||
= levelNumber
|
span
|
||||||
span.spr
|
= levelNumber
|
||||||
| .
|
span.spr
|
||||||
span
|
| .
|
||||||
= level.get('name').replace('Course: ', '')
|
span
|
||||||
|
= level.get('name').replace('Course: ', '')
|
||||||
a.play-level-button.btn.btn-lg.btn-primary
|
a.play-level-button.btn.btn-lg.btn-primary
|
||||||
span(data-i18n="courses.play_level")
|
span(data-i18n="courses.play_level")
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
Loading…
Reference in a new issue