1
0
Fork 1
impress/app/views/layouts/items.html.haml
Emi Matchu 6dd8e585a3 Add responsive layout for item page
We add a new `use_responsive_design` helper, for pages to opt into this
new CSS—mostly just because like… it's *worse* to apply these styles
for pages that don't expect it 😅

And then, I fix up a couple things on the item page (including in the
general items layout) to match!

I'm doing this because the species face picker layout is going to want
some responsive awareness, and I want to be doing that from the start!
2024-09-05 16:18:48 -07:00

15 lines
557 B
Text

- content_for :before_title, advertise_campaign_progress(@campaign)
- content_for :title_category do
#{t 'infinite_closet'}: #{t '.title_tagline'}
- content_for :before_flashes do
%h1
= link_to items_path do
= image_tag 'https://images.neopets.com/items/mall_floatingneggfaerie.gif'
%span= t 'infinite_closet'
- content_for :content do
= form_tag items_path, method: :get, class: "item-search-form" do
= text_field_tag :q, @query.to_s
= submit_tag t('.search'), :name => nil
= yield
= render template: 'layouts/application'