mirror of
https://github.com/HabitRPG/habitica.git
synced 2026-04-22 19:39:25 -05:00
Added pet food link to pets.json and jade template (issue #8023)
This commit is contained in:
@@ -92,5 +92,7 @@
|
||||
"petsReleased": "Pets released.",
|
||||
"mountsAndPetsReleased": "Mounts and pets released",
|
||||
"mountsReleased": "Mounts released",
|
||||
"gemsEach": "gems each"
|
||||
"gemsEach": "gems each",
|
||||
"foodWikiText": "What does my pet like to eat?",
|
||||
"foodWikiUrl": "http://habitica.wikia.com/wiki/Food_Preferences"
|
||||
}
|
||||
|
||||
@@ -61,11 +61,8 @@ mixin petList(eggSource, potionSource)
|
||||
p(ng-show='foodCount < 1')=env.t('noFood')
|
||||
menu.inventory-list(type='list', ng-if='foodCount > 0')
|
||||
li.customize-menu
|
||||
label Food and Saddles
|
||||
p
|
||||
| Not sure what to feed your pet?
|
||||
a(href='http://habitica.wikia.com/wiki/Food_Preferences' target='_blank' rel='noopener noreferrer') Click here
|
||||
menu.pets-menu
|
||||
menu.pets-menu(label=env.t('food'))
|
||||
a(href=env.t('foodWikiUrl'), target='_blank')=env.t('foodWikiText')
|
||||
div(ng-repeat='(food,points) in ownedItems(user.items.food)')
|
||||
button.customize-option(popover-append-to-body='true', popover='{{:: Content.food[food].notes()}}', popover-title='{{:: Content.food[food].text()}}', popover-trigger='mouseenter', popover-placement='top', ng-click='chooseFood(food)', ng-class='{selectableInventory: selectedFood == Content.food[food]}', class='Pet_Food_{{::food}}')
|
||||
.badge.badge-info.stack-count {{points}}
|
||||
|
||||
Reference in New Issue
Block a user