mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 00:09:41 +00:00
fix(sharing): Push ng-binding into Jade
This commit is contained in:
parent
63f00d3643
commit
cc2a6d4db1
1 changed files with 2 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue