2014-09-30 19:14:47 -04:00
extends /templates/modal/modal_base
block modal-header-content
2014-11-17 00:26:21 -05:00
img(src="/images/pages/play/level/modal/victory_modal_blue_banner.png")#victory-banner
2014-10-17 23:15:41 -04:00
img(src="/images/pages/play/level/modal/victory_word.png")#victory-header.out
2014-09-30 19:14:47 -04:00
block modal-body-content
2014-10-10 16:11:35 -04:00
2014-09-30 19:14:47 -04:00
for achievement in achievements
2014-10-10 16:11:35 -04:00
- var animate = achievement.completed && !achievement.completedAWhileAgo
.achievement-panel(class=achievement.completedAWhileAgo ? 'earned' : '' data-achievement-id=achievement.id data-animate=animate)
2014-09-30 19:14:47 -04:00
- var rewards = achievement.get('rewards') || {};
2014-10-10 16:11:35 -04:00
div.achievement-description= achievement.get('description')
div.achievement-rewards
- var worth = achievement.get('worth', true);
if worth
2014-10-17 23:15:41 -04:00
.reward-panel.numerical.xp(data-number=worth, data-number-unit='xp')
2014-10-20 22:01:00 -04:00
.reward-image-container(class=animate ? 'pending-reward-image' : 'show')
2014-10-10 16:11:35 -04:00
img(src="/images/pages/play/level/modal/reward_icon_xp.png")
2014-10-17 23:47:32 -04:00
.reward-text= animate ? '+0' : '+'+worth
2014-10-10 16:11:35 -04:00
if rewards.gems
2014-10-17 23:15:41 -04:00
.reward-panel.numerical.gems(data-number=rewards.gems, data-number-unit='gem')
2014-10-20 22:01:00 -04:00
.reward-image-container(class=animate ? 'pending-reward-image' : 'show')
2014-10-10 16:11:35 -04:00
img(src="/images/pages/play/level/modal/reward_icon_gems.png")
2014-10-17 23:47:32 -04:00
.reward-text= animate ? '+0' : '+'+rewards.gems
2014-10-10 16:11:35 -04:00
if rewards.heroes
for hero in rewards.heroes
- var hero = thangTypes[hero];
2014-10-20 22:01:00 -04:00
.reward-panel.hero(data-hero-thang-type=hero.get('original'))
.reward-image-container(class=animate ? 'pending-reward-image' : 'show')
2014-10-10 16:11:35 -04:00
img(src=hero.getPortraitURL())
2014-10-20 22:01:00 -04:00
.reward-text= animate ? 'New Hero' : hero.get('name')
2014-10-10 16:11:35 -04:00
if rewards.items
for item in rewards.items
- var item = thangTypes[item];
2014-10-20 22:01:00 -04:00
.reward-panel.item(data-item-thang-type=item.get('original'))
.reward-image-container(class=animate ? 'pending-reward-image' : 'show')
2014-10-10 16:11:35 -04:00
img(src=item.getPortraitURL())
2014-10-20 22:01:00 -04:00
.reward-text= animate ? 'New Item' : item.get('name')
2014-10-10 16:11:35 -04:00
2014-10-23 19:36:59 -04:00
.next-levels-prompt
for button in continueButtons
- var enabled = Boolean(button.link != '/play' || me.getBranchingGroup() == 'choice-implicit' || button.key == 'continue');
2014-11-03 12:58:57 -05:00
button.btn.btn-success.btn-lg.world-map-button.next-level-branch-button(data-href=button.link, disabled=!enabled, data-dismiss="modal", data-i18n="play_level.victory_play_" + button[me.getBranchingGroup()], data-branch-key=button.key)
2014-09-30 19:14:47 -04:00
block modal-footer-content
2014-10-22 18:42:51 -04:00
if me.get('anonymous')
p.sign-up-poke.hide
button.btn.btn-success.sign-up-button.btn-large(data-toggle="coco-modal", data-target="modal/SignupModal", data-i18n="play_level.victory_sign_up") Sign Up to Save Progress
span(data-i18n="play_level.victory_sign_up_poke") Want to save your code? Create a free account!
2014-10-10 16:11:35 -04:00
div#totals.pull-left
span.spr Experience Gained:
span#xp-total +0
br
span.spr Gems Gained:
span#gem-total +0
2014-10-13 17:18:33 -04:00
button.btn.btn-warning.hide#saving-progress-label(disabled, data-i18n="play_level.victory_saving_progress") Saving Progress
2014-10-19 20:38:10 -04:00
2014-10-22 18:42:51 -04:00
.next-level-buttons
if readyToRank
.ladder-submission-view
else if level.get('type') === 'hero-ladder'
2014-11-03 12:58:57 -05:00
button.btn.btn-primary.return-to-ladder-button(data-href="/play/ladder/#{level.get('slug')}#my-matches", data-dismiss="modal", data-i18n="play_level.victory_return_to_ladder") Return to Ladder
2014-10-22 18:42:51 -04:00
else
2014-10-23 19:36:59 -04:00
button.btn.btn-success.world-map-button.next-level-button.hide#continue-button(data-i18n="play_level.victory_play_continue") Continue