mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 23:21:07 -05:00
Moved global actions - only show if no buttonbar
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user