2016-06-03 13:18:41 -04:00
|
|
|
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()
|
|
|
|
|
2016-04-19 16:44:48 -04:00
|
|
|
if completed
|
|
|
|
.small-details.nowrap
|
|
|
|
span= levelNumber
|
|
|
|
span.spr .
|
|
|
|
span= levelName
|
|
|
|
.small-details.nowrap
|
|
|
|
span.spr(data-i18n='teacher.completed')
|
|
|
|
| Completed
|
2016-08-04 21:37:01 -04:00
|
|
|
- var dateCompleted = session.get('dateFirstCompleted') || session.get('created') || session.get('changed');
|
|
|
|
if dateCompleted
|
|
|
|
span= new Date(dateCompleted).toLocaleString()
|
2016-06-03 13:18:41 -04:00
|
|
|
+timePlayed
|
2016-04-19 16:44:48 -04:00
|
|
|
//- .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
|
2016-06-26 16:51:14 -04:00
|
|
|
span= new Date(session.get('changed')).toLocaleString()
|
2016-06-03 13:18:41 -04:00
|
|
|
+timePlayed
|
2016-04-19 16:44:48 -04:00
|
|
|
//- .small-details
|
|
|
|
//- i(data-i18n='teacher.click_to_view_progress')
|
|
|
|
//- | click to view progress
|
|
|
|
else
|
2016-06-26 16:51:14 -04:00
|
|
|
.small-details.nowrap
|
|
|
|
span= levelNumber
|
|
|
|
span.spr .
|
|
|
|
span= levelName
|
2016-04-19 16:44:48 -04:00
|
|
|
span.small-details.nowrap(data-i18n='teacher.no_progress')
|
|
|
|
| No progress
|