mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
36 lines
1 KiB
Text
36 lines
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(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(lastPlayed).toLocaleString()
|
|
+timePlayed
|
|
//- .small-details
|
|
//- i(data-i18n='teacher.click_to_view_progress')
|
|
//- | click to view progress
|
|
else
|
|
span.small-details.nowrap(data-i18n='teacher.no_progress')
|
|
| No progress
|