2016-01-19 18:42:20 -05:00
|
|
|
.modal-header
|
2016-05-31 12:44:38 -04:00
|
|
|
#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
|
2016-04-15 13:58:52 -04:00
|
|
|
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 :
|
2016-05-31 18:01:32 -04:00
|
|
|
h2.text-uppercase= i18n(view.nextLevel.attributes, 'name').replace('Course: ', '')
|
2016-01-19 18:42:20 -05:00
|
|
|
|
2016-07-15 23:03:12 -04:00
|
|
|
div.next-level-description!= view.nextLevelDescription
|
2016-07-15 19:57:39 -04:00
|
|
|
|
2016-07-15 23:03:12 -04:00
|
|
|
if view.shareURL
|
|
|
|
.well.well-sm.well-parchment
|
|
|
|
h3.text-uppercase
|
|
|
|
if view.level.isType('game-dev')
|
2016-07-17 03:53:17 -04:00
|
|
|
span(data-i18n='sharing.share_game')
|
2016-07-15 23:03:12 -04:00
|
|
|
else
|
2016-07-17 03:53:17 -04:00
|
|
|
span(data-i18n='sharing.share_web')
|
2016-07-15 23:03:12 -04:00
|
|
|
p
|
2016-07-17 03:53:17 -04:00
|
|
|
span(data-i18n='sharing.victory_course_share_prefix')
|
2016-07-15 23:03:12 -04:00
|
|
|
span= ' '
|
|
|
|
a(href=view.shareURL, target='_blank')
|
|
|
|
if view.level.isType('game-dev')
|
2016-07-17 03:53:17 -04:00
|
|
|
span(data-i18n='sharing.victory_course_share_game')
|
2016-07-15 23:03:12 -04:00
|
|
|
else
|
2016-07-17 03:53:17 -04:00
|
|
|
span(data-i18n='sharing.victory_course_share_web')
|
2016-07-15 23:03:12 -04:00
|
|
|
span= ' '
|
2016-07-17 03:53:17 -04:00
|
|
|
span(data-i18n='sharing.victory_course_share_suffix')
|
2016-07-15 23:03:12 -04:00
|
|
|
.row
|
|
|
|
.col-sm-9
|
|
|
|
input.text-h4.semibold.form-control.input-lg#share-level-input(value=view.shareURL)
|
|
|
|
.col-sm-3
|
|
|
|
button#share-level-btn.btn.btn-lg.btn-success.btn-illustrated
|
2016-07-17 03:53:17 -04:00
|
|
|
span(data-i18n='sharing.copy_url')
|
2016-01-19 18:42:20 -05:00
|
|
|
|
|
|
|
.row
|
|
|
|
.col-sm-5.col-sm-offset-2
|
2016-07-15 18:54:22 -04:00
|
|
|
// TODO: Add rest of campaign functionality
|
|
|
|
if view.level.get('type') === 'course-ladder'
|
|
|
|
button#ladder-btn.btn.btn-illustrated.btn-default.btn-block.btn-lg.text-uppercase Ladder
|
2016-01-19 18:42:20 -05:00
|
|
|
.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')
|