From 9cf94eec5ae98f750f9babc0c37373df87e3981c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 15:30:30 -0400 Subject: Styled flash and errors in admin panel --- app/views/layouts/admin.html.haml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'app/views/layouts/admin.html.haml') 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 @@ = stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %body - #banner= link_to "Thoughts", root_url + #banner + = link_to "Thoughts", root_url + - if flash[:alert] + #flash.flash-alert + %span.flash-tag ERROR: + = flash.alert + - if flash[:notice] + #flash.flash-notice + %span.flash-tag NOTICE: + = flash.notice #container %ul#sidebar %li{major_sidebar_attrs("dashboard")} @@ -16,12 +25,4 @@ %ul.minors %li.minor= link_to "New blog", new_admin_blog_url #main - - if flash[:alert] - #flash.flash-alert - %span.flash-tag ERROR: - = flash.alert - - if flash[:notice] - #flash.flash-notice - %span.flash-tag NOTICE: - = flash.notice = yield -- cgit 1.4.1