2016-03-30 16:57:19 -04:00
|
|
|
extends /templates/base-flat
|
2015-11-03 19:41:06 -05:00
|
|
|
|
2016-03-30 16:57:19 -04:00
|
|
|
block page_nav
|
|
|
|
include ./teacher-dashboard-nav.jade
|
2015-12-08 15:05:08 -05:00
|
|
|
|
2016-03-30 16:57:19 -04:00
|
|
|
block content
|
2016-03-30 19:20:37 -04:00
|
|
|
if !me.isTeacher() && view.ownedClassrooms.size()
|
|
|
|
.alert.alert-danger.text-center
|
|
|
|
.container
|
|
|
|
// DNT: Temporary
|
|
|
|
h3 ATTENTION: Please upgrade your account to a Teacher Account.
|
|
|
|
p
|
|
|
|
| We are transitioning to a new improved classroom management system for instructors.
|
|
|
|
| Please convert your account to ensure you retain access to your classrooms.
|
2016-04-05 12:16:22 -04:00
|
|
|
a.btn.btn-primary.btn-lg(href="/teachers/update-account") Upgrade to teacher account
|
2016-03-30 19:20:37 -04:00
|
|
|
|
2016-03-30 16:57:19 -04:00
|
|
|
.container
|
|
|
|
h1(data-i18n="courses.title")
|
|
|
|
h2(data-i18n="courses.subtitle")
|
2016-04-29 12:23:57 -04:00
|
|
|
p
|
|
|
|
a(href="https://discourse.codecombat.com/t/course-level-changelog/7352" data-i18n="courses.changelog")
|
2016-03-30 16:57:19 -04:00
|
|
|
|
|
|
|
.courses.container
|
2015-11-30 19:40:14 -05:00
|
|
|
- var courses = view.courses.models;
|
2016-04-08 15:59:10 -04:00
|
|
|
- var courseIndex = 0;
|
|
|
|
while courseIndex < courses.length
|
|
|
|
- var course = courses[courseIndex];
|
|
|
|
- courseIndex++;
|
2016-03-30 16:57:19 -04:00
|
|
|
.course.row
|
|
|
|
.col-sm-9
|
2015-11-30 19:40:14 -05:00
|
|
|
+course-info(course)
|
2016-04-27 16:24:54 -04:00
|
|
|
if me.isTeacher()
|
|
|
|
.col-sm-3
|
|
|
|
.play-level-form(data-course-id=course.id)
|
|
|
|
.form-group
|
|
|
|
label.control-label
|
|
|
|
span(data-i18n="courses.select_language")
|
|
|
|
| :
|
|
|
|
select.language-select.form-control
|
|
|
|
// TODO: Automate this list @scott
|
|
|
|
option(value="python")
|
|
|
|
| Python
|
|
|
|
option(value="javascript")
|
|
|
|
| JavaScript
|
|
|
|
//- option(value="coffeescript")
|
|
|
|
//- | CoffeeScript (Experimental)
|
|
|
|
//- option(value="clojure")
|
|
|
|
//- | Clojure (Experimental)
|
|
|
|
//- option(value="lua")
|
|
|
|
//- | Lua
|
|
|
|
//- option(value="java")
|
|
|
|
//- | Java
|
|
|
|
.form-group
|
|
|
|
label.control-label
|
|
|
|
span(data-i18n="courses.select_level")
|
|
|
|
| :
|
|
|
|
select.level-select.form-control
|
|
|
|
if view.campaigns.loaded
|
|
|
|
each level, levelIndex in view.campaigns.get(course.get('campaignID')).getLevels().models
|
|
|
|
option(value=level.get('slug'))
|
|
|
|
span
|
|
|
|
= levelIndex + 1
|
|
|
|
span.spr
|
|
|
|
| .
|
|
|
|
span
|
2016-05-31 17:48:47 -04:00
|
|
|
= level.get('name').replace('Course: ', '')
|
2016-04-27 16:24:54 -04:00
|
|
|
a.play-level-button.btn.btn-lg.btn-primary
|
|
|
|
span(data-i18n="courses.play_level")
|
|
|
|
.clearfix
|
2016-03-30 16:57:19 -04:00
|
|
|
|
2015-11-30 19:40:14 -05:00
|
|
|
mixin course-info(course)
|
2016-04-13 12:54:24 -04:00
|
|
|
- var campaign = view.campaigns.get(course.get('campaignID'));
|
2016-03-30 16:57:19 -04:00
|
|
|
.course-info
|
|
|
|
.text-h4.semibold
|
|
|
|
= course.get('name')
|
|
|
|
p= course.get('description')
|
|
|
|
p.concepts.semibold
|
|
|
|
span(data-i18n="courses.concepts_covered")
|
|
|
|
| :
|
|
|
|
each concept in course.get('concepts')
|
|
|
|
span(data-i18n="concepts." + concept)
|
|
|
|
if course.get('concepts').indexOf(concept) !== course.get('concepts').length - 1
|
|
|
|
span.spr ,
|
2016-03-30 19:20:37 -04:00
|
|
|
|
2016-04-08 13:14:35 -04:00
|
|
|
if me.isTeacher() || view.ownedClassrooms.size()
|
2016-03-30 19:20:37 -04:00
|
|
|
if view.guideLinks[course.id]
|
2016-04-27 16:24:54 -04:00
|
|
|
//- a.btn.btn-primary(href=view.guideLinks[course.id] class=(me.isTeacher() ? '': 'disabled'))
|
2016-03-30 19:20:37 -04:00
|
|
|
//- span(data-i18n="courses.print_guide")
|
2016-04-27 16:24:54 -04:00
|
|
|
a.btn.btn-primary(href=view.guideLinks[course.id].python class=(me.isTeacher() ? '': 'disabled'))
|
2016-03-30 19:20:37 -04:00
|
|
|
span(data-i18n="courses.view_guide_online")
|
2016-04-07 17:55:42 -04:00
|
|
|
| — Python
|
2016-04-27 16:24:54 -04:00
|
|
|
a.btn.btn-primary(href=view.guideLinks[course.id].javascript class=(me.isTeacher() ? '': 'disabled'))
|
2016-04-07 17:55:42 -04:00
|
|
|
span(data-i18n="courses.view_guide_online")
|
|
|
|
| — JavaScript
|
2016-03-30 19:20:37 -04:00
|
|
|
else
|
|
|
|
i.small
|
|
|
|
| (
|
|
|
|
span(data-i18n='teacher.guides_coming_soon')
|
|
|
|
| )
|
2016-04-13 12:54:24 -04:00
|
|
|
if campaign && campaign.get('levelsUpdated')
|
|
|
|
p.small.m-t-2
|
|
|
|
span.spr(data-i18n="courses.last_updated")
|
|
|
|
span= moment(campaign.get('levelsUpdated')).format('LL')
|