Moved global actions - only show if no buttonbar

This commit is contained in:
Brenda Wallace
2019-01-21 18:41:51 +13:00
parent bc359412af
commit fbc958b76a
2 changed files with 16 additions and 9 deletions

View File

@@ -21,7 +21,6 @@
.navbar-collapse.collapse#navbar-collapse
.navbar-right
= render 'shared/global_actions'
%ul.nav.navbar-nav.navbar-right
%li.dropdown<
%a.dropdown-toggle{ 'data-toggle': 'dropdown', href: crops_path }

View File

@@ -6,15 +6,23 @@
= render partial: "layouts/header"
#maincontainer
- if content_for?(:title)
%h1#title
= yield(:title)
- if content_for?(:subtitle)
%small= yield(:subtitle)
- if content_for?(:buttonbar)
.btn-group.layout-actions= yield(:buttonbar)
= render partial: "shared/flash_messages", flash: flash
.row
.col-md-8
- if content_for?(:title)
%h1#title
= yield(:title)
- if content_for?(:subtitle)
%small= yield(:subtitle)
.col-md-4
- if content_for?(:buttonbar)
.btn-group.layout-actions= yield(:buttonbar)
- else
= render 'shared/global_actions'
= yield
%footer