impress/app/views/outfits/edit.html.haml
Emi Matchu 9aef987f95 Move partials in views/static to views/application
I think this is the more canonical place for stuff like this these days!
It's nice to be able to just say the short name when calling `render`.

Here's the answer I looked up about it: https://stackoverflow.com/a/9892081/107415

My immediate motivation is that I'm looking at creating more About
pages, and thinking about where to put them; I think maybe we trash the
`StaticController`, move these partials out to here, and move terms
into a new `AboutController`?
2024-03-10 18:48:25 -07:00

26 lines
832 B
Text

- if @outfit
- title(@outfit.name || t('.default_outfit_name'))
- open_graph type: 'openneo-impress:outfit', title: yield(:title),
url: outfit_url(@outfit)
- if @outfit.image?
- open_graph image: absolute_url(@outfit.image.url)
!!! 5
%html
%head
%meta{charset: 'utf-8'}
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1'}
%title
- if content_for? :title
= yield :title
| #{t 'app_name'}
%link{href: image_path('favicon.png'), rel: 'icon'}
= stylesheet_link_tag 'fonts'
= javascript_include_tag 'wardrobe-2020-page', defer: true
= render 'analytics'
= open_graph_tags
= csrf_meta_tags
= impress_2020_meta_tags
%meta{name: 'dti-current-user-id', content: user_signed_in? ? current_user.id : "null"}
%body
#wardrobe-2020-root