1
0
Fork 0
forked from OpenNeo/impress
impress/app/views
Emi Matchu 3dab235335 Handle newly-released PB items in Item Getting Guide
Oh right, it's possible for `Item#pb?` to return true, but
`Item#pb_color` to return `nil`, if the item has the paintbrush item
description but we can't find a color whose name matches the item name.
This would be expected if a new color were added to Neopets, and PB
items for it were modeled by the community, but we hadn't manually
added the color to the database yet.

Previously, the Item Getting Guide would crash in this scenario. Now,
it correctly handles the possibility of a `nil` value for `pb_color`,
and shows some placeholder info.

To test this, I temporarily edited some item names to not contain the
color name anymore (e.g. "P-rate Elephante Shirt and Vest"), then
loaded the guide and made changes until it no longer crashed.
2024-06-05 19:23:57 -07:00
..
about Add more NeoPass details to about page 2024-03-13 17:55:23 -07:00
alt_styles Remove outdated info from Alt Styles page 2024-05-29 18:47:06 -07:00
application Move partials in views/static to views/application 2024-03-10 18:48:25 -07:00
auth_users Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
closet_hangers Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
closet_lists Add trade warning to closet list form 2024-04-16 16:53:30 -07:00
contributions i18n for contributions#index 2013-01-09 17:15:23 -06:00
devise Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
fundraising Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
item_trades Oops, load the data for the bulk item quantity form on the trades page! 2024-01-21 06:42:24 -08:00
items Handle newly-released PB items in Item Getting Guide 2024-06-05 19:23:57 -07:00
layouts Add "About NeoPass" link to footer 2024-05-02 13:20:45 -07:00
neopets_page_import_tasks refactor importing 2015-07-27 13:25:24 -04:00
outfits Remove survey link from NeoPass announcement, schedule it to vanish 2024-05-02 13:28:37 -07:00
pets Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
sitemap Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
users i18n for contributions#index 2013-01-09 17:15:23 -06:00