2014-11-29 14:39:37 -05:00
|
|
|
extends /templates/core/modal-base
|
2014-09-17 21:56:08 -04:00
|
|
|
|
|
|
|
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
|
2014-11-19 17:55:01 -05:00
|
|
|
.panel(class=achievement.earned ? 'earned' : '')
|
|
|
|
.panel-body
|
2014-11-19 19:36:06 -05:00
|
|
|
img.icon(src=achievement.getImageURL(), draggable="false")
|
2015-02-13 21:55:23 -05:00
|
|
|
h3= achievement.name + (achievement.earned && achievement.earned.get('achievedAmount') ? (' - ' + achievement.earned.get('achievedAmount') + 'x') : '')
|
2014-11-19 17:55:01 -05:00
|
|
|
p= achievement.description
|
2015-11-18 14:16:44 -05:00
|
|
|
|
2014-11-19 17:55:01 -05:00
|
|
|
if achievement.earnedDate
|
|
|
|
.created=moment(achievement.earnedDate).fromNow()
|
|
|
|
else
|
|
|
|
.created(data-i18n="user.status_unfinished")
|
|
|
|
|
|
|
|
.rewards
|
2015-02-13 21:55:23 -05:00
|
|
|
- rewards = achievement.get('rewards');
|
2014-11-19 17:55:01 -05:00
|
|
|
if rewards && rewards.gems
|
|
|
|
span.gems.label.label-default
|
2015-02-13 21:55:23 -05:00
|
|
|
span= achievement.earnedGems || rewards.gems
|
2014-11-19 19:36:06 -05:00
|
|
|
img.gem(src="/images/common/gem.png", draggable="false")
|
2015-11-18 14:16:44 -05:00
|
|
|
|
2015-02-13 21:55:23 -05:00
|
|
|
- worth = achievement.get('worth');
|
2014-11-19 17:55:01 -05:00
|
|
|
if worth
|
|
|
|
span.worth.label.label-default
|
2015-02-13 21:55:23 -05:00
|
|
|
span #{achievement.earnedPoints || worth}xp
|
2014-11-19 17:55:01 -05:00
|
|
|
// maybe add more icons/numbers for items, heroes, levels, xp?
|
|
|
|
block modal-footer
|