fix(sharing): Push ng-binding into Jade
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user