1
0
Fork 0
forked from OpenNeo/impress
impress/app/helpers
Emi Matchu 1f0c8b87a6 Move Item Getting Guide subtitle UI out of helpers, into templates
I thought to myself, "I wonder if it's possible to use a sneaky hacky
`content_for` trick to be able to run this code in the template." And
indeed it is!

It's tricky cuz like, I want to render this template, and I want to
provide _multiple_ slots of content to it. So, in this variant, we keep
the block as being primarily for the actions, but also optionally
accept `content_for :subtitle` inside that block, too.

Executing that correctly is a bit tricky! The subtitle comes *before*
the actions. So, we `yield` the actions block immediately, save it to a
variable, and *then* get the subtitle block.
2024-06-09 15:03:35 -07:00
..
fundraising Move most fundraising files into a Fundraising module 2024-02-18 20:12:14 -08:00
application_helper.rb Add cart icon to Item Getting Guide's "Buy" buttons for NC Mall 2024-05-21 18:14:14 -07:00
closet_hangers_helper.rb High-level caching for closet lists 2024-02-20 18:43:39 -08:00
closet_lists_helper.rb Fix incorrect closet list deletion prompt message 2024-03-13 13:59:27 -07:00
closet_pages_helper.rb Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
contribution_helper.rb Add Styling Studio page to show the styles we already have modeled 2024-01-24 06:53:37 -08:00
item_trades_helper.rb Sort trades in vaguely-recent order 2024-01-21 03:59:06 -08:00
items_helper.rb Move Item Getting Guide subtitle UI out of helpers, into templates 2024-06-09 15:03:35 -07:00
neopets_page_import_tasks_helper.rb refactor importing 2015-07-27 13:25:24 -04:00
outfits_helper.rb Remove survey link from NeoPass announcement, schedule it to vanish 2024-05-02 13:28:37 -07:00