wip
This commit is contained in:
18
app/views/layouts/_alerts.html.haml
Normal file
18
app/views/layouts/_alerts.html.haml
Normal file
@ -0,0 +1,18 @@
|
||||
- unless flash.empty?
|
||||
- if flash[:notice].present?
|
||||
.container{'data-id' => 'alertbox', 'data-alert' => 'auto-close'}
|
||||
.row
|
||||
.col-md-6.col-md-offset-3.col-xs-12
|
||||
.alertbox
|
||||
.alertbox.box_blue
|
||||
.box_close{'data-id'=> 'alert-close'}
|
||||
= flash[:notice]
|
||||
|
||||
- if flash[:alert].present?
|
||||
.container{'data-id' => 'alertbox'}
|
||||
.row
|
||||
.col-md-6.col-md-offset-3.col-xs-12
|
||||
.alertbox
|
||||
.alertbox.box_red
|
||||
.box_close{'data-id'=> 'alert-close'}
|
||||
%b= flash[:alert]
|
0
app/views/layouts/_footer.html.haml
Normal file
0
app/views/layouts/_footer.html.haml
Normal file
7
app/views/layouts/_navigation.html.haml
Normal file
7
app/views/layouts/_navigation.html.haml
Normal file
@ -0,0 +1,7 @@
|
||||
%ul.nav
|
||||
%li= link_to 'Home', root_path
|
||||
%li= link_to 'Parents', list_parents_path
|
||||
%li= link_to 'Children', list_children_path
|
||||
%li= link_to 'Staff', list_staff_path
|
||||
%li= link_to 'Users', list_users_path
|
||||
%li= link_to 'Pages', list_pages_path
|
@ -6,5 +6,12 @@
|
||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
||||
= csrf_meta_tags
|
||||
= yield :custom_head
|
||||
%body
|
||||
= render partial: 'layouts/alerts'
|
||||
= render partial: 'layouts/navigation'
|
||||
= render partial: 'sub_nav' if lookup_context.find_all('sub_nav').any?
|
||||
= yield
|
||||
= render partial: 'layouts/footer'
|
||||
= yield :modals
|
||||
= yield :custom_scripts
|
||||
|
Reference in New Issue
Block a user