codecombat/app/templates/courses/classroom-level-popover.jade
2015-12-03 12:10:08 -08:00

10 lines
477 B
Text

- var completed = session && session.get('state').complete;
h3 #{i + 1}. #{level.name.replace('Course: ', '')}
p
span.spr(data-i18n="courses.play_time")
span #{moment.duration(session.get('playtime'), "seconds").humanize()}
p
span.spr(data-i18n=completed ? "courses.completed" : "clans.last_played")
span #{moment(session.get('changed')).format('MMMM Do YYYY, h:mm:ss a')}
if canViewSolution
strong(data-i18n=completed ? "clans.view_solution" : "clans.view_attempt")