replace skeleton files by previous version; apply obvious fixes
This commit is contained in:
parent
1f5cbcd6d1
commit
2133be2436
35 changed files with 1086 additions and 39 deletions
23
app/views/layouts/application.haml
Normal file
23
app/views/layouts/application.haml
Normal file
|
@ -0,0 +1,23 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
|
||||
%title=h "SharedLists: " + controller.controller_name
|
||||
= stylesheet_link_tag 'application'
|
||||
= csrf_meta_tag
|
||||
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
|
||||
%body
|
||||
#content
|
||||
- if flash[:notice]
|
||||
%h3{:style => "color: green"}= flash[:notice]
|
||||
- if flash[:error]
|
||||
%h3{:style => "color: red"}= flash[:error]
|
||||
= yield
|
||||
#footer
|
||||
%hr/
|
||||
- if current_user.present?
|
||||
Logged in as #{current_user.email}, #{link_to("log out", log_out_path)}
|
||||
- else
|
||||
= link_to "Log in", log_in_path
|
||||
|
||||
= yield :javascript
|
|
@ -1,12 +0,0 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
||||
%title Sharedlists
|
||||
%meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/
|
||||
= csrf_meta_tags
|
||||
= csp_meta_tag
|
||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
||||
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
|
||||
%body
|
||||
= yield
|
|
@ -1,8 +0,0 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
|
||||
:css
|
||||
/* Email styles need to be inline */
|
||||
%body
|
||||
= yield
|
|
@ -1 +0,0 @@
|
|||
= yield
|
Loading…
Add table
Add a link
Reference in a new issue