sidebar rewrited
This commit is contained in:
1 parent
5f712622ad
commit
53afb6ea0c
14 files changed
+395
-16
No files matched your search
+33
@@ -0,0 +1,33 @@
|
||||
module PageContent
|
||||
|
||||
OrbitApp.registration "PageContent",:type=> 'ModuleApp' do
|
||||
module_label 'page'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
# personal_plugin :enable => true,:path=>"panel/announcement/plugin/profile",:i18n=>'admin.announcement'
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
|
||||
front_end do
|
||||
app_page 'page_contexts'
|
||||
end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'page',:icon_class=>"icons-page"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['page_contexts']})
|
||||
active_for_object_auth ['PageContext']
|
||||
|
||||
head_link_path "panel_page_content_back_end_page_contexts_path"
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'page_content'}))",
|
||||
:priority=>1,
|
||||
:active_for_app_auth => 'PageContext',
|
||||
:available_for => [:admin]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user