2015-10-13 20:32:07 +00:00
|
|
|
include ../avatar/generated_avatar
|
|
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='modals/levelUp.html')
|
2015-11-11 18:09:00 +00:00
|
|
|
- var level = '{{user.stats.lvl}}';
|
2015-10-13 20:32:07 +00:00
|
|
|
.modal-content(style='min-width:28em')
|
2015-10-28 20:52:07 +00:00
|
|
|
.modal-body.text-center(style='padding-bottom:0')
|
2015-10-13 20:32:07 +00:00
|
|
|
h3(style='margin-bottom: 0')=env.t('gainedLevel')
|
|
|
|
|
.container-fluid
|
|
|
|
|
.row
|
2015-10-22 19:08:04 +00:00
|
|
|
.herobox(style='margin:auto 8.3em; width: 6em; height: 9em; padding-top: 0')
|
2015-10-13 20:32:07 +00:00
|
|
|
.character-sprites(style='margin: 0; width: 0')
|
|
|
|
|
+generatedAvatar
|
|
|
|
|
.row
|
2015-10-22 19:08:04 +00:00
|
|
|
.herobox(style='margin:auto 8.9em; width: 6em; height: 0; padding-top: 0')
|
2015-10-13 20:32:07 +00:00
|
|
|
.avatar-level(ng-class='userLevelStyle(user)')=env.t('level')+' {{user.stats.lvl}}'
|
|
|
|
|
h4(style='margin-top: 1em')!=env.t('leveledUp', {level:'{{user.stats.lvl}}'})
|
|
|
|
|
p=env.t('fullyHealed')
|
2015-10-21 19:23:31 +00:00
|
|
|
br
|
2015-10-13 20:32:07 +00:00
|
|
|
button.btn.btn-primary(ng-click='$close()')=env.t('huzzah')
|
2015-10-28 20:36:47 +00:00
|
|
|
.checkbox
|
|
|
|
|
label(style='display:inline-block')=env.t('dontShowAgain')
|
|
|
|
|
input(type='checkbox', ng-model='user.preferences.suppressModals.levelUp', ng-change='set({"preferences.suppressModals.levelUp": user.preferences.suppressModals.levelUp?true: false})')
|
2015-10-22 18:37:29 +00:00
|
|
|
.modal-footer(style='margin-top:0', ng-init='loadWidgets()')
|
2015-10-22 19:08:04 +00:00
|
|
|
.container-fluid
|
|
|
|
|
.row
|
2015-10-22 20:00:55 +00:00
|
|
|
.col-xs-3
|
2015-11-11 18:09:00 +00:00
|
|
|
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I+got+to+Level+#{level}+in+Habitica+by+improving+my+real-life+habits!&via=habitica&url=#{env.BASE_URL}/social/level-up&count=none')=env.t('tweet')
|
2015-10-22 20:00:55 +00:00
|
|
|
.col-xs-4(style='margin-left:.8em')
|
2015-11-10 21:27:40 +00:00
|
|
|
.fb-share-button(data-href='#{env.BASE_URL}/social/level-up', data-layout='button')
|
2015-10-22 20:00:55 +00:00
|
|
|
.col-xs-4(style='margin-left:.8em')
|
2015-11-10 21:27:40 +00:00
|
|
|
a.tumblr-share-button(data-href='#{env.BASE_URL}/social/level-up', data-notes='none')
|