From c6e544be703654fbe7137e7ff66e4c907f7162bf Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 10 Aug 2023 18:19:03 -0700 Subject: [PATCH] Render wardrobe-2020 fullscreen Tada! No more layout! --- app/controllers/outfits_controller.rb | 4 ++++ app/views/outfits/edit.html.haml | 13 +++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/controllers/outfits_controller.rb b/app/controllers/outfits_controller.rb index f58f7ca1..44c35e2c 100644 --- a/app/controllers/outfits_controller.rb +++ b/app/controllers/outfits_controller.rb @@ -10,6 +10,10 @@ class OutfitsController < ApplicationController end end + def edit + render "outfits/edit", layout: false + end + def index if user_signed_in? @outfits = current_user.outfits. diff --git a/app/views/outfits/edit.html.haml b/app/views/outfits/edit.html.haml index 51f20177..4ade26ae 100644 --- a/app/views/outfits/edit.html.haml +++ b/app/views/outfits/edit.html.haml @@ -1,4 +1,9 @@ -- content_for :javascripts do - = javascript_include_tag 'wardrobe-2020-page', defer: true - -#wardrobe-2020-root +!!! 5 +%html + %head + %meta{charset: 'utf-8'} + %title Dress to Impress + %link{href: image_path('favicon.png'), rel: 'icon'} + = javascript_include_tag 'wardrobe-2020-page', defer: true + %body + #wardrobe-2020-root