1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/items
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
..
_item.html.haml Move item_link partial caching to a helper rather than the template itself 2013-06-22 16:31:46 -07:00
_item_header.html.haml Oops, fix recent bug in Owls value widget on item page 2024-05-28 16:21:03 -07:00
_item_link.html.haml Use table layout for Item Getting Guide item list 2024-05-20 15:23:34 -07:00
_item_list_row.html.haml Oops, fix recent bug in Item Getting Guide for most item types 2024-05-28 17:05:28 -07:00
index.html.haml Remove newest_items caching from items page 2023-10-23 19:05:04 -07:00
needed.html.haml Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
show.html.haml Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
sources.html.haml Handle newly-released PB items in Item Getting Guide 2024-06-05 19:23:57 -07:00