codecombat/app/templates/play/level/modal/progress-view.jade

52 lines
2.1 KiB
Text
Raw Normal View History

2016-01-19 18:42:20 -05:00
.modal-header
#close-modal.btn.well.well-sm.well-parchment(data-dismiss="modal")
2016-01-19 18:42:20 -05:00
span.glyphicon.glyphicon-remove
.well.well-sm.well-parchment
2016-04-08 15:59:10 -04:00
h1(data-i18n='play_level.level_complete')
2016-01-19 18:42:20 -05:00
.modal-body
.container-fluid
.row
2016-04-13 12:54:24 -04:00
- var colClass = !view.nextLevel.isNew() ? 'col-sm-7' : 'col-sm-12'
2016-01-19 18:42:20 -05:00
div(class=colClass)
.well.well-sm.well-parchment
2016-04-08 15:59:10 -04:00
h3.text-uppercase(data-i18n='play_level.completed_level')
2016-01-19 18:42:20 -05:00
h2.text-uppercase.text-center= i18n(view.level.attributes, 'name')
.well.well-sm.well-parchment
if me.isSessionless()
2016-04-08 15:59:10 -04:00
h3.course-title
span.text-uppercase.spr(data-i18n='play_level.course')
span.text-uppercase.text-center= i18n(view.course.attributes, 'name')
span(data-i18n='play_level.victory_no_progress_for_teachers')
else
h3.text-uppercase(data-i18n='play_level.course')
.row
.col-sm-8
h3.text-uppercase.text-center= i18n(view.course.attributes, 'name')
.col-sm-4
2016-04-13 12:54:24 -04:00
- var stats = view.classroom.statsForSessions(view.levelSessions, view.course.id)
2016-04-08 15:59:10 -04:00
h1
span #{stats.levels.numDone}/#{stats.levels.size}
2016-01-19 18:42:20 -05:00
2016-04-13 12:54:24 -04:00
if !view.nextLevel.isNew()
2016-01-19 18:42:20 -05:00
.col-sm-5
.well.well-sm.well-parchment
2016-04-08 15:59:10 -04:00
h3.text-uppercase
span(data-i18n='play_level.next_level')
span :
h2.text-uppercase= i18n(view.nextLevel.attributes, 'name').replace('Course: ', '')
2016-01-19 18:42:20 -05:00
div!= view.nextLevelDescription
2016-01-19 18:42:20 -05:00
.row
.col-sm-5.col-sm-offset-2
// TODO: Add this and rest of campaign functionality
// button#continue-btn.btn.btn-illustrated.btn-default.btn-block.btn-lg.text-uppercase View Leaderboards
.col-sm-5
2016-04-13 12:54:24 -04:00
if !view.nextLevel.isNew()
2016-04-08 15:59:10 -04:00
button#next-level-btn.btn.btn-illustrated.btn-primary.btn-block.btn-lg.text-uppercase(data-i18n='play_level.next_level')
2016-01-19 18:42:20 -05:00
else
2016-04-08 15:59:10 -04:00
button#done-btn.btn.btn-illustrated.btn-primary.btn-block.btn-lg.text-uppercase(data-i18n='play_level.done')