Courses UI - Show progress to students by default
This commit is contained in:
parent
ea90b93bd2
commit
d47f41548c
1 changed files with 101 additions and 94 deletions
|
@ -5,7 +5,6 @@ block content
|
||||||
//- DO NOT localize / i18n
|
//- DO NOT localize / i18n
|
||||||
|
|
||||||
div TODO: fix ugly tabs
|
div TODO: fix ugly tabs
|
||||||
div TODO: not enrolled yet
|
|
||||||
div
|
div
|
||||||
span *UNDER CONSTRUCTION, send feedback to
|
span *UNDER CONSTRUCTION, send feedback to
|
||||||
a.spl(href='mailto:team@codecombat.com') team@codecombat.com
|
a.spl(href='mailto:team@codecombat.com') team@codecombat.com
|
||||||
|
@ -55,7 +54,12 @@ block content
|
||||||
|
|
||||||
div(role='tabpanel')
|
div(role='tabpanel')
|
||||||
ul.nav.nav-tabs(role='tablist')
|
ul.nav.nav-tabs(role='tablist')
|
||||||
if !studentMode
|
if studentMode
|
||||||
|
li.active(role='presentation')
|
||||||
|
a(href='#levels', aria-controls='levels', role='tab', data-toggle='tab') Levels
|
||||||
|
li(role='presentation')
|
||||||
|
a(href='#progress', aria-controls='progress', role='tab', data-toggle='tab') Class
|
||||||
|
else
|
||||||
li.active(role='presentation')
|
li.active(role='presentation')
|
||||||
a(href='#progress', aria-controls='progress', role='tab', data-toggle='tab') Class
|
a(href='#progress', aria-controls='progress', role='tab', data-toggle='tab') Class
|
||||||
li(role='presentation')
|
li(role='presentation')
|
||||||
|
@ -64,8 +68,26 @@ block content
|
||||||
a(href='#levels', aria-controls='levels', role='tab', data-toggle='tab') Levels
|
a(href='#levels', aria-controls='levels', role='tab', data-toggle='tab') Levels
|
||||||
|
|
||||||
.tab-content
|
.tab-content
|
||||||
if !studentMode
|
if studentMode
|
||||||
|
.tab-pane.active#levels(role='tabpanel')
|
||||||
|
+levels-tab
|
||||||
|
.tab-pane#progress(role='tabpanel')
|
||||||
|
+progress-tab
|
||||||
|
else
|
||||||
.tab-pane.active#progress(role='tabpanel')
|
.tab-pane.active#progress(role='tabpanel')
|
||||||
|
+progress-tab
|
||||||
|
.tab-pane#invite(role='tabpanel')
|
||||||
|
p Invite students to join this class.
|
||||||
|
if course.title !== 'Introduction to Computer Science'
|
||||||
|
p Student unlock code: #{instance.code}
|
||||||
|
p Class capacity: 34/50
|
||||||
|
textarea.textarea-emails(rows=3, placeholder="Enter student emails to invite, one per line")
|
||||||
|
div
|
||||||
|
button.btn.btn-success.btn-invite Send Invites
|
||||||
|
.tab-pane#levels(role='tabpanel')
|
||||||
|
+levels-tab
|
||||||
|
|
||||||
|
mixin progress-tab
|
||||||
if instance.students
|
if instance.students
|
||||||
h3 Summary
|
h3 Summary
|
||||||
- var averagePlaytime = Math.round(Math.random() * 30) + 30
|
- var averagePlaytime = Math.round(Math.random() * 30) + 30
|
||||||
|
@ -151,21 +173,6 @@ block content
|
||||||
span.spl #{level}
|
span.spl #{level}
|
||||||
- i++
|
- i++
|
||||||
|
|
||||||
.tab-pane#invite(role='tabpanel')
|
|
||||||
p Invite students to join this class.
|
|
||||||
if course.title !== 'Introduction to Computer Science'
|
|
||||||
p Student unlock code: #{instance.code}
|
|
||||||
p Class capacity: 34/50
|
|
||||||
textarea.textarea-emails(rows=3, placeholder="Enter student emails to invite, one per line")
|
|
||||||
div
|
|
||||||
button.btn.btn-success.btn-invite Send Invites
|
|
||||||
|
|
||||||
.tab-pane#levels(role='tabpanel')
|
|
||||||
+levels-tab
|
|
||||||
else
|
|
||||||
.tab-pane.active#levels(role='tabpanel')
|
|
||||||
+levels-tab
|
|
||||||
|
|
||||||
mixin levels-tab
|
mixin levels-tab
|
||||||
table.table.table-striped.table-condensed
|
table.table.table-striped.table-condensed
|
||||||
thead
|
thead
|
||||||
|
|
Reference in a new issue