2014-08-11 08:11:26 -04:00
|
|
|
- var addedClass = style + (locked === true ? ' locked' : '')
|
|
|
|
.clearfix.achievement-body(class=addedClass)
|
|
|
|
.achievement-icon
|
|
|
|
.achievement-image
|
|
|
|
img(src=imgURL)
|
|
|
|
.achievement-content
|
|
|
|
.achievement-title= title
|
|
|
|
p.achievement-description= description
|
|
|
|
|
|
|
|
if popup
|
|
|
|
.progress-wrapper
|
2014-08-11 08:51:34 -04:00
|
|
|
span.user-level= level
|
2014-08-11 08:11:26 -04:00
|
|
|
.progress-bar-wrapper
|
|
|
|
.progress
|
2014-08-12 07:41:14 -04:00
|
|
|
- var currentTitle = $.i18n.t('achievements.current_xp_prefix') + currentXP + ' XP' + $.i18n.t('achievements.current_xp_postfix');
|
|
|
|
- var newTitle = $.i18n.t('achievements.new_xp_prefix') + newXP + ' XP' + $.i18n.t('achievements.new_xp_postfix');
|
|
|
|
- var leftTitle = $.i18n.t('achievements.left_xp_prefix') + newXP + ' XP' + $.i18n.t('achievements.left_xp_infix') + (level+1) + $.i18n.t('achievements.left_xp_postfix');
|
|
|
|
.progress-bar.xp-bar-old(style="width:#{oldXPWidth}%" data-toggle="tooltip" data-placement="top" title="#{currentTitle}")
|
|
|
|
.progress-bar.xp-bar-new(style="width:#{newXPWidth}%" data-toggle="tooltip" title="#{newTitle}")
|
|
|
|
.progress-bar.xp-bar-left(style="width:#{leftXPWidth}%" data-toggle="tooltip" title="#{leftTitle}")
|
2014-08-11 08:11:26 -04:00
|
|
|
.progress-bar-border
|