Activeadmin::Subnav
Provide sub-navigation menu for resources belonging to a parent resource.
Currently, ActiveAdmin 1.0pre resets the top navigation menu to display the sub navigation menu for all resources related to that parent resource. This gem provides a sub navigation menu for those resources.
NOTE: Optional belongs_to configurations are not supported!
Installation
Add this line to your application's Gemfile:
gem 'activeadmin-subnav'
And then execute:
$ bundle
Add the subnav's styles to your active_admin.css.scss
stylesheet:
//= require active_admin/subnav
// Align subnav with main navigation by padding the width of the site's
// titie.
#header div.subnav {
padding-left: 8.333em;
}
Contributing
- Fork it ( https://github.com/zorab47/activeadmin-subnav/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request