codecombat/app/templates/teachers/hovers/progress-dot-single-student-level.jade
Matt Lott d72e4eb750 Practice levels Ux and next level algorithm
Update classroom and gameplay Ux to surface practice levels as 3a, 3b,
etc.
Update next level logic to leverage practice levels based on per level
completion playtime thresholds.
Patrol buster and patrol buster A are live for testing.
Fix a few classroom Ux progress hover bubble info bugs.

Closes #3767
2016-06-27 14:05:42 -07:00

40 lines
1.1 KiB
Text

mixin timePlayed()
if session.get('playtime') > 0
.small-details.nowrap
span.spr(data-i18n='teacher.time_played')
| Played for
span= moment.duration({ seconds: session.get('playtime') }).humanize()
if completed
.small-details.nowrap
span= levelNumber
span.spr .
span= levelName
.small-details.nowrap
span.spr(data-i18n='teacher.completed')
| Completed
span= new Date(session.get('dateFirstCompleted')).toLocaleString()
+timePlayed
//- .small-details
//- i(data-i18n='teacher.click_to_view_solution')
//- | click to view solution
else if started
.small-details.nowrap
span= levelNumber
span.spr .
span= levelName
.small-details.nowrap
span.spr(data-i18n='teacher.last_played')
| Last played
span= new Date(session.get('changed')).toLocaleString()
+timePlayed
//- .small-details
//- i(data-i18n='teacher.click_to_view_progress')
//- | click to view progress
else
.small-details.nowrap
span= levelNumber
span.spr .
span= levelName
span.small-details.nowrap(data-i18n='teacher.no_progress')
| No progress