fix(sharing): Push ng-binding into Jade

This commit is contained in:
Sabe Jones 2015-11-11 13:09:00 -05:00
parent 63f00d3643
commit cc2a6d4db1

View file

@ -1,6 +1,7 @@
include ../avatar/generated_avatar
script(type='text/ng-template', id='modals/levelUp.html')
- var level = '{{user.stats.lvl}}';
.modal-content(style='min-width:28em')
.modal-body.text-center(style='padding-bottom:0')
h3(style='margin-bottom: 0')=env.t('gainedLevel')
@ -23,7 +24,7 @@ script(type='text/ng-template', id='modals/levelUp.html')
.container-fluid
.row
.col-xs-3
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I+got+to+Level+{{::user.stats.lvl}}+in+Habitica+by+improving+my+real-life+habits!&via=habitica&url=#{env.BASE_URL}/social/level-up&count=none')=env.t('tweet')
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')
.col-xs-4(style='margin-left:.8em')
.fb-share-button(data-href='#{env.BASE_URL}/social/level-up', data-layout='button')
.col-xs-4(style='margin-left:.8em')