codecombat/app/templates/play/modal/play-achievements-modal.jade

31 lines
1.2 KiB
Text
Raw Normal View History

extends /templates/core/modal-base
block modal-header-content
h3(data-i18n="play.achievements") Achievements
block modal-body-content
2015-11-18 14:16:44 -05:00
for achievement in view.achievements.models
.panel(class=achievement.earned ? 'earned' : '')
.panel-body
img.icon(src=achievement.getImageURL(), draggable="false")
h3= achievement.name + (achievement.earned && achievement.earned.get('achievedAmount') ? (' - ' + achievement.earned.get('achievedAmount') + 'x') : '')
p= achievement.description
2015-11-18 14:16:44 -05:00
if achievement.earnedDate
.created=moment(achievement.earnedDate).fromNow()
else
.created(data-i18n="user.status_unfinished")
.rewards
- rewards = achievement.get('rewards');
if rewards && rewards.gems
span.gems.label.label-default
span= achievement.earnedGems || rewards.gems
img.gem(src="/images/common/gem.png", draggable="false")
2015-11-18 14:16:44 -05:00
- worth = achievement.get('worth');
if worth
span.worth.label.label-default
span #{achievement.earnedPoints || worth}xp
// maybe add more icons/numbers for items, heroes, levels, xp?
block modal-footer