mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-16 11:11:43 +00:00
Merge pull request #4590 from negue/fixAchievementsOnMobile
aLink mixin to handle mobile links
This commit is contained in:
commit
e6a5feeeb6
2 changed files with 10 additions and 3 deletions
|
|
@ -6,3 +6,9 @@ mixin gemButton(isGemsModal)
|
|||
.Pet_Currency_Gem2x.Gems
|
||||
| {{user.balance * 4 | number:0}}
|
||||
=env.t('gems')
|
||||
|
||||
mixin aLink(url, label)
|
||||
if mobile
|
||||
a(href="", ng-click="externalLink('#{url}')")= label
|
||||
else
|
||||
a(href='#{url}', target='_blank')= label
|
||||
|
|
@ -32,7 +32,7 @@ div(ng-if='::profile.contributor.level || user._id == profile._id')
|
|||
small
|
||||
=env.t('contribText')
|
||||
|
|
||||
a(href='http://habitrpg.wikia.com/wiki/Contributing_to_HabitRPG', target='_blank')=env.t('readMore')
|
||||
+aLink('http://habitrpg.wikia.com/wiki/Contributing_to_HabitRPG', env.t('readMore'))
|
||||
| .
|
||||
hr
|
||||
|
||||
|
|
@ -75,7 +75,8 @@ div(ng-if='profile.achievements.perfect || user._id == profile._id')
|
|||
div(ng-if='::user._id == profile._id')
|
||||
div.muted
|
||||
h5=env.t('ultimGearName')
|
||||
small <a href='https://github.com/HabitRPG/habitrpg/issues/2232' target='_blank'>Returning soon</a>
|
||||
small
|
||||
+aLink('https://github.com/HabitRPG/habitrpg/issues/2232', 'Returning soon')
|
||||
hr
|
||||
|
||||
div(ng-if='profile.achievements.beastMaster || user._id == profile._id')
|
||||
|
|
@ -121,7 +122,7 @@ div(ng-if='::profile.achievements.helpedHabit')
|
|||
small
|
||||
=env.t('helpedText1')
|
||||
|
|
||||
a(href='http://community.habitrpg.com/node/290', target='_blank')=env.t('helpedText2')
|
||||
+aLink('http://community.habitrpg.com/node/290', env.t('helpedText2'))
|
||||
hr
|
||||
|
||||
div(ng-if=':: profile.achievements.originalUser || profile.achievements.veteran')
|
||||
|
|
|
|||
Loading…
Reference in a new issue