2014-09-17 21:56:08 -04:00
|
|
|
extends /templates/modal/modal_base
|
|
|
|
|
|
|
|
block modal-header-content
|
|
|
|
h3(data-i18n="play.achievements") Achievements
|
|
|
|
|
|
|
|
block modal-body-content
|
2014-11-19 17:55:01 -05:00
|
|
|
for achievement in achievements
|
|
|
|
.panel(class=achievement.earned ? 'earned' : '')
|
|
|
|
.panel-body
|
2014-11-19 19:36:06 -05:00
|
|
|
img.icon(src=achievement.getImageURL(), draggable="false")
|
2014-11-19 17:55:01 -05:00
|
|
|
h3= achievement.name
|
|
|
|
p= achievement.description
|
|
|
|
|
|
|
|
if achievement.earnedDate
|
|
|
|
.created=moment(achievement.earnedDate).fromNow()
|
|
|
|
else
|
|
|
|
.created(data-i18n="user.status_unfinished")
|
|
|
|
|
|
|
|
.rewards
|
|
|
|
- rewards = achievement.get('rewards')
|
|
|
|
- rewards = { gems: 100 }
|
|
|
|
if rewards && rewards.gems
|
|
|
|
span.gems.label.label-default
|
|
|
|
span= rewards.gems
|
2014-11-19 19:36:06 -05:00
|
|
|
img.gem(src="/images/common/gem.png", draggable="false")
|
2014-11-19 17:55:01 -05:00
|
|
|
|
|
|
|
- worth = achievement.get('worth')
|
|
|
|
if worth
|
|
|
|
span.worth.label.label-default
|
|
|
|
span #{worth}xp
|
|
|
|
// maybe add more icons/numbers for items, heroes, levels, xp?
|
|
|
|
block modal-footer
|