impress/app/views/items
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
..
_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 Move Item Getting Guide subtitle UI out of helpers, into templates 2024-06-09 15:03:35 -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 Move Item Getting Guide subtitle UI out of helpers, into templates 2024-06-09 15:03:35 -07:00