about summary refs log tree commit diff stats
path: root/app/views/layouts
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:30:30 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:30:30 -0400
commit9cf94eec5ae98f750f9babc0c37373df87e3981c (patch)
tree31ffe18ad835db2d786b406f76162766eabbbda9 /app/views/layouts
parent7971d7ac77c83717afcceaa1f476d1eb9afd5918 (diff)
downloadthoughts-9cf94eec5ae98f750f9babc0c37373df87e3981c.tar.gz
thoughts-9cf94eec5ae98f750f9babc0c37373df87e3981c.tar.bz2
thoughts-9cf94eec5ae98f750f9babc0c37373df87e3981c.zip
Styled flash and errors in admin panel
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/admin.html.haml19
1 files changed, 10 insertions, 9 deletions
diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index a2c2d95..7f8c171 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml
@@ -6,7 +6,16 @@
6 = stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' 6 = stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload'
7 = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' 7 = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
8 %body 8 %body
9 #banner= link_to "Thoughts", root_url 9 #banner
10 = link_to "Thoughts", root_url
11 - if flash[:alert]
12 #flash.flash-alert
13 %span.flash-tag ERROR:
14 = flash.alert
15 - if flash[:notice]
16 #flash.flash-notice
17 %span.flash-tag NOTICE:
18 = flash.notice
10 #container 19 #container
11 %ul#sidebar 20 %ul#sidebar
12 %li{major_sidebar_attrs("dashboard")} 21 %li{major_sidebar_attrs("dashboard")}
@@ -16,12 +25,4 @@
16 %ul.minors 25 %ul.minors
17 %li.minor= link_to "New blog", new_admin_blog_url 26 %li.minor= link_to "New blog", new_admin_blog_url
18 #main 27 #main
19 - if flash[:alert]
20 #flash.flash-alert
21 %span.flash-tag ERROR:
22 = flash.alert
23 - if flash[:notice]
24 #flash.flash-notice
25 %span.flash-tag NOTICE:
26 = flash.notice
27 = yield 28 = yield