1
0
Fork 0
forked from OpenNeo/impress
impress/app
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
..
assets Add Dyeworks section to Item Getting Guide (but it's currently wrong!) 2024-06-09 13:25:59 -07:00
controllers Use Owls to check for Permanent Dyeworks items 2024-06-09 14:46:24 -07:00
helpers Move Item Getting Guide subtitle UI out of helpers, into templates 2024-06-09 15:03:35 -07:00
javascript Redesign "Get these items!" button to use a cart icon instead 2024-05-31 17:38:25 -07:00
mailers/fundraising Move most fundraising files into a Fundraising module 2024-02-18 20:12:14 -08:00
models Use Owls to check for Permanent Dyeworks items 2024-06-09 14:46:24 -07:00
services Load *all* NC Mall pages in nc_mall:sync 2024-05-10 17:39:40 -07:00
views Move Item Getting Guide subtitle UI out of helpers, into templates 2024-06-09 15:03:35 -07:00