Added pet food link to pets.json and jade template (issue #8023)

This commit is contained in:
tallestthomas
2016-12-08 11:05:22 -05:00
parent 79829ca128
commit 2d5d786c8e
2 changed files with 5 additions and 6 deletions
+3 -1
View File
@@ -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"
}
+2 -5
View File
@@ -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}}