mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
List courses you are in at the top of /courses
This commit is contained in:
parent
a5793630c2
commit
af7bb08dc3
1 changed files with 18 additions and 0 deletions
|
@ -25,6 +25,9 @@ block content
|
|||
if hocLandingPage
|
||||
+hoc-landing
|
||||
else
|
||||
if view.courseInstances.size()
|
||||
+course-instance-list
|
||||
|
||||
if studentMode
|
||||
+student-main
|
||||
else
|
||||
|
@ -53,6 +56,21 @@ mixin hoc-landing
|
|||
.col-md-6.center
|
||||
button.btn.btn-lg.btn-default.btn-teacher(data-i18n="courses.teachers_click")
|
||||
|
||||
mixin course-instance-list
|
||||
h1.center Courses You Are In
|
||||
.row
|
||||
.col-md-10.col-md-offset-1
|
||||
.list-group
|
||||
for courseInstance in view.courseInstances.models
|
||||
- var course = view.courses.get(courseInstance.get('courseID'));
|
||||
.list-group-item
|
||||
.list-group-item-heading
|
||||
h3
|
||||
a(href="/courses/#{course.id}/#{courseInstance.id}")
|
||||
span.spr #{courseInstance.get('name')}
|
||||
small (#{course.get('name')})
|
||||
p= courseInstance.get('description')
|
||||
|
||||
mixin student-main
|
||||
button.btn.btn-warning.btn-teacher(data-i18n="courses.teachers_click")
|
||||
h1.center(data-i18n="courses.courses_on_coco")
|
||||
|
|
Loading…
Reference in a new issue