Sha256: c1135580f43aecb32355c215ce918436589237fd1bb48277a8e22d950692652c
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
Contents
module Optimacms::Concerns::AdminMenu::AdminMenu extend ActiveSupport::Concern included do end module ClassMethods def get_menu_basic [ {title: 'Content', url: nil, submenu: [ {title: 'Pages', url: Optimacms::Engine.routes.url_helpers.pages_path}, {title: 'Templates', url: Optimacms::Engine.routes.url_helpers.templates_path}, {title: 'Resources', url: Optimacms::Engine.routes.url_helpers.resources_path}, {title: 'Languages', url: Optimacms::Engine.routes.url_helpers.languages_path}, {title: 'CSS Files', url: Optimacms::Engine.routes.url_helpers.css_files_path}, {title: 'Media', url: Optimacms::Engine.routes.url_helpers.mediafiles_path} ] } ] end def get_menu get_menu_basic + get_menu_custom + get_menu_system end def get_menu_custom [] end def get_menu_system [ {title: 'System', url: nil, submenu: [ {title: 'App', url: Optimacms::Engine.routes.url_helpers.app_sys_path}, {title: 'Maintenance', url: false}, {title: 'Backups', url: false}, {title: 'Info', url: false} ] } ] end end end
Version data entries
4 entries across 4 versions & 1 rubygems