2016-06-30 11:29:27 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
//- DO NOT TRANSLATE
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
2016-07-24 11:09:12 -04:00
|
|
|
h3 Classroom Levels
|
2016-06-30 11:29:27 -04:00
|
|
|
if !me.isAdmin()
|
|
|
|
div You must be logged in as an admin to view this page.
|
|
|
|
else
|
|
|
|
p
|
|
|
|
- var levelsTotal = 0;
|
2016-07-24 11:09:12 -04:00
|
|
|
table.table.table-striped.table-condensed
|
|
|
|
tr
|
|
|
|
th Levels
|
|
|
|
th Course
|
|
|
|
each course in view.courses.models
|
|
|
|
- var campaign = view.campaigns.get(course.get('campaignID'));
|
2016-08-05 15:09:36 -04:00
|
|
|
if !campaign
|
|
|
|
- continue;
|
2016-07-24 11:09:12 -04:00
|
|
|
- var levels = campaign.getLevels().models;
|
|
|
|
- levelsTotal += levels.length;
|
|
|
|
tr
|
|
|
|
td= levels.length
|
|
|
|
td= course.get('name')
|
|
|
|
tr
|
|
|
|
td= levelsTotal
|
|
|
|
td All
|
2016-06-30 11:29:27 -04:00
|
|
|
each course in view.courses.models
|
|
|
|
- var campaign = view.campaigns.get(course.get('campaignID'));
|
2016-08-05 15:09:36 -04:00
|
|
|
if !campaign
|
|
|
|
- continue;
|
2016-06-30 11:29:27 -04:00
|
|
|
- var levels = campaign.getLevels().models;
|
|
|
|
- levelCounts = levels.length;
|
|
|
|
strong #{course.get('name')}
|
|
|
|
.small= course.get('description')
|
|
|
|
.small Levels last updated #{campaign.get('levelsUpdated')}
|
|
|
|
table.table.table-striped.table-condensed
|
|
|
|
tr
|
|
|
|
th= levels.length
|
|
|
|
th Slug
|
|
|
|
th Type
|
|
|
|
th Practice
|
|
|
|
th Practice Threshold (m)
|
2016-07-24 11:09:12 -04:00
|
|
|
th Shareable
|
2016-08-11 09:08:58 -04:00
|
|
|
th Primer
|
2016-06-30 11:29:27 -04:00
|
|
|
each level, levelIndex in levels
|
|
|
|
- var levelNumber = campaign.getLevelNumber(level.get('original'), levelIndex + 1)
|
|
|
|
tr
|
|
|
|
td= levelNumber
|
|
|
|
td= level.get('slug')
|
|
|
|
td= level.get('type')
|
|
|
|
td= level.get('practice')
|
|
|
|
td= level.get('practiceThresholdMinutes')
|
2016-07-24 11:09:12 -04:00
|
|
|
td= level.get('shareable')
|
2016-08-11 09:08:58 -04:00
|
|
|
td= level.get('primerLanguage')
|