mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
97cb5275c3
* Handling prepaids with strings for maxRedeemers * Add link to TeacherCoursesView from HourOfCodeView * Show only course instances with classrooms attached in TeacherCoursesView and StudentCoursesView * Add event tracking to HourOfCodeView * Add not-logged-in handling to TeacherCoursesView * Fixed a GET prepaids bug * Have course instances created for hour of code have hourOfCode property set to true.
54 lines
No EOL
1.6 KiB
Text
54 lines
No EOL
1.6 KiB
Text
extends /templates/base
|
|
|
|
block content
|
|
|
|
p To join a class, ask your teacher for an unlock code.
|
|
|
|
#join-classroom-form.form-horizontal
|
|
.form-group
|
|
.col-sm-2
|
|
button#join-class-btn.btn.btn-default.btn-block(disabled=view.state==='enrolling') Join Class
|
|
.col-sm-6
|
|
input#classroom-code-input.form-control(
|
|
placeholder='<enter unlock code here>',
|
|
value=view.classCode,
|
|
disabled=view.state==='enrolling')
|
|
|
|
if view.state === 'enrolling'
|
|
.progress.progress-striped.active
|
|
.progress-bar(style="width: 100%") Joining class
|
|
|
|
if view.state === 'unknown_error'
|
|
.alert.alert-danger= view.stateMessage
|
|
|
|
.panel.panel-default
|
|
.panel-heading
|
|
.panel-title My Courses
|
|
|
|
.list-group
|
|
for courseInstance in view.courseInstances.models
|
|
- var classroom = view.classrooms.get(courseInstance.get('classroomID'))
|
|
- var course = view.courses.get(courseInstance.get('courseID'))
|
|
if !(classroom && course)
|
|
- continue;
|
|
|
|
.list-group-item
|
|
.row
|
|
.col-sm-3
|
|
if classroom
|
|
| #{classroom.get('name')}
|
|
.col-sm-3
|
|
if course
|
|
| #{course.get('name')}
|
|
.col-sm-6
|
|
a.btn.btn-default.btn-sm(href="/courses/#{course.id}/#{courseInstance.id}") Enter
|
|
|
|
.panel.panel-default
|
|
.panel-heading
|
|
.panel-title My Classes
|
|
.list-group
|
|
for classroom in view.classrooms.models
|
|
.list-group-item
|
|
.row
|
|
.col-sm-3= classroom.get('name')
|
|
.col-sm-9= classroom.get('description') |