mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
fix(sharing): Use env BASE_URL
This commit is contained in:
parent
23df5b608d
commit
ada7ca71ad
6 changed files with 18 additions and 18 deletions
|
|
@ -4,11 +4,11 @@ mixin achievementFooter
|
|||
.container-fluid
|
||||
.row.text-center
|
||||
.col-xs-4
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I earned a new achievement in Habitica!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/achievement&count=none')=env.t('tweet')
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I earned a new achievement in Habitica!&via=habitica&url=#{env.BASE_URL}/social/achievement&count=none')=env.t('tweet')
|
||||
.col-xs-4
|
||||
.fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/achievement', data-layout='button')
|
||||
.fb-share-button(data-href='#{env.BASE_URL}/social/achievement', data-layout='button')
|
||||
.col-xs-4
|
||||
a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/achievement', data-notes='none')
|
||||
a.tumblr-share-button(data-href='#{env.BASE_URL}/social/achievement', data-notes='none')
|
||||
|
||||
mixin achievementAvatar(badge,margin)
|
||||
.container-fluid
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ script(type='text/ng-template', id='modals/hatchPet.html')
|
|||
.container-fluid
|
||||
.row
|
||||
.col-xs-3
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just hatched a {{::hatchedPet.potion}} {{::hatchedPet.egg}} by completing my real-life tasks!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/hatch-pet&count=none')=env.t('tweet')
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just hatched a {{::hatchedPet.potion}} {{::hatchedPet.egg}} by completing my real-life tasks!&via=habitica&url=#{env.BASE_URL}/social/hatch-pet&count=none')=env.t('tweet')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
.fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/hatch-pet', data-layout='button')
|
||||
.fb-share-button(data-href='{env.BASE_URL}/social/hatch-pet', data-layout='button')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/hatch-pet', data-notes='none')
|
||||
a.tumblr-share-button(data-href='{env.BASE_URL}/social/hatch-pet', data-notes='none')
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ 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=https://habitrpg-gamma.herokuapp.com/social/level-up&count=none')=env.t('tweet')
|
||||
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')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
.fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/level-up', data-layout='button')
|
||||
.fb-share-button(data-href='#{env.BASE_URL}/social/level-up', data-layout='button')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/level-up', data-notes='none')
|
||||
a.tumblr-share-button(data-href='#{env.BASE_URL}/social/level-up', data-notes='none')
|
||||
|
|
|
|||
|
|
@ -110,11 +110,11 @@ script(type='text/ng-template', id='modals/questDrop.html')
|
|||
.container-fluid
|
||||
.row
|
||||
.col-xs-3
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I unlocked the quest {{::selectedQuest.text()}} in Habitica!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/unlock-quest&count=none')=env.t('tweet')
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I unlocked the quest {{::selectedQuest.text()}} in Habitica!&via=habitica&url=#{env.BASE_URL}/social/unlock-quest&count=none')=env.t('tweet')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
.fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/unlock-quest', data-layout='button')
|
||||
.fb-share-button(data-href='#{env.BASE_URL}/social/unlock-quest', data-layout='button')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/unlock-quest', data-notes='none')
|
||||
a.tumblr-share-button(data-href='#{env.BASE_URL}/social/unlock-quest', data-notes='none')
|
||||
|
||||
script(type='text/ng-template', id='modals/ownedQuests.html')
|
||||
.modal-header
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ script(type='text/ng-template', id='modals/raisePet.html')
|
|||
.container-fluid
|
||||
.row
|
||||
.col-xs-3
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just raised a {{::raisedPet.displayName}} mount by completing my real-life tasks!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/raise-pet&count=none')=env.t('tweet')
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just raised a {{::raisedPet.displayName}} mount by completing my real-life tasks!&via=habitica&url=#{env.BASE_URL}/social/raise-pet&count=none')=env.t('tweet')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
.fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/raise-pet', data-layout='button')
|
||||
.fb-share-button(data-href='#{env.BASE_URL}/social/raise-pet', data-layout='button')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/raise-pet', data-notes='none')
|
||||
a.tumblr-share-button(data-href='#{env.BASE_URL}/social/raise-pet', data-notes='none')
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ script(type='text/ng-template', id='modals/wonChallenge.html')
|
|||
.container-fluid
|
||||
.row
|
||||
.col-xs-3
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just won the Challenge {{::user.achievements.challenges[user.achievements.challenges.length - 1]}} in Habitica!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/won-challenge&count=none')=env.t('tweet')
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just won the Challenge {{::user.achievements.challenges[user.achievements.challenges.length - 1]}} in Habitica!&via=habitica&url=#{env.BASE_URL}/social/won-challenge&count=none')=env.t('tweet')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
.fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/won-challenge', data-layout='button')
|
||||
.fb-share-button(data-href='#{env.BASE_URL}/social/won-challenge', data-layout='button')
|
||||
.col-xs-4(style='margin-left:.8em')
|
||||
a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/won-challenge', data-notes='none')
|
||||
a.tumblr-share-button(data-href='#{env.BASE_URL}/social/won-challenge', data-notes='none')
|
||||
|
|
|
|||
Loading…
Reference in a new issue