Skip to content

shamimevatix/activeadmin-3rd-level-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

"Settings", if: proc{ check permission list or something else } -> level 0 menu.add :label => I18n.t('site_settings'), parent: "settings", if: proc{ check permission list or something else } -> level 1 end end ``` In the resource file, if it is a 3rd level menu item. Just assign the parent to the 2nd level menu above here. e.g. ``` ActiveAdmin.register Post do menu parent: I18n.t('site_settings') end ``` And you are done. Also Need to add the css here in the active_admin.scss like ``` @import "nested_menu"; ``` Now, you are done. ## Contributing 1. Fork it! 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request :D ## History TODO: Write history ## Credits TODO: Write credits ## License TODO: Write license ]]> readme

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published