habitica/website/views/shared/modals/death.jade

41 lines
1.9 KiB
Text
Raw Normal View History

2015-07-20 21:24:05 +00:00
include ../avatar/generated_avatar
script(type='text/ng-template', id='modals/death.html')
.modal-header
2015-07-21 18:57:13 +00:00
h3.text-center=env.t('lostAllHealth')
2015-07-20 21:24:05 +00:00
.modal-body
.container-fluid(ng-controller='UserCtrl')
.col-md-6
.hero-stats
.meter-label(tooltip=env.t('health'))
span.glyphicon.glyphicon-heart
.meter.health(tooltip='{{Math.round(user.stats.hp * 100) / 100}}')
.bar(ng-style='{"width": Shared.percent(user.stats.hp, Shared.maxHealth)+"%"}')
span.meter-text.value
| {{Math.ceil(user.stats.hp)}} / {{::Shared.maxHealth}}
figure.herobox.text-center
.character-sprites
+costumeSetting('back')
span(ng-class="'skin_' + profile.preferences.skin + '_sleep'")
span(class='{{profile.preferences.size}}_shirt_{{profile.preferences.shirt}}')
+costumeSetting('armor', {prefix: "profile.preferences.size + '_' + "})
+costumeSetting('back', {suffix: " + '_collar'"})
+costumeSetting('body')
span(class='head_0')
- var hairTypes = ['base', 'bangs', 'mustache', 'beard']
each type in hairTypes
span(class='hair_#{type}_{{profile.preferences.hair.#{type}}}_{{profile.preferences.hair.color}}')
+costumeSetting('eyewear')
+costumeSetting('head')
+costumeSetting('headAccessory')
span(class='hair_flower_{{profile.preferences.hair.flower}}')
+costumeSetting('shield')
+costumeSetting('weapon')
2015-07-21 19:39:08 +00:00
span(class='knockout')
2015-07-20 21:24:05 +00:00
.col-md-6
2015-07-21 19:39:08 +00:00
h4(style='margin-top:1.5em')=env.t('dontDespair')
p(style='margin-top:1.5em')=env.t('deathPenaltyDetails')
2015-07-20 21:24:05 +00:00
.modal-footer
a.btn.btn-danger.btn-lg.flex-column(ng-click='user.ops.revive({}); $close()')=env.t('refillHealthTryAgain')
2015-07-21 19:39:08 +00:00
h4.text-center!=env.t('dyingOftenTips')