Updated init.rb

This commit is contained in:
saurabhbhatia 2013-08-09 14:49:11 +08:00
parent 7c64e8c637
commit 6269c6d1e6
1 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,6 @@
module AdBanner
OrbitApp.registration "AdBanner",:type=> 'ModuleApp' do
module_label 'module_name.ad_banner'
module_label 'ad_banner.ad_banner'
base_url File.expand_path File.dirname(__FILE__)
# personal_plugin :enable => true,:path=>"panel/ad_banner/plugin/profile",:i18n=>'admin.ad_banner'
@ -10,7 +10,6 @@ module AdBanner
intro "I am intro"
update_info 'some update_info'
taggable
# front_end do
@ -36,7 +35,7 @@ module AdBanner
# end
side_bar do
head_label_i18n 'module_name.ad_banner',:icon_class=>"icons-landscape"
head_label_i18n 'ad_banner.ad_banner',:icon_class=>"icons-landscape"
available_for [:admin,:guest,:manager,:sub_manager]
active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']})
@ -60,6 +59,17 @@ module AdBanner
:active_for_action=>{'admin/ad_banners'=>:index},
:available_for => [:manager]
context_link 'tags',
:link_path=>"admin_module_tags_path(module_app_id: get_module_app)" ,
:priority=>4,
:active_for_tag => 'Announcement',
:available_for => [:manager]
context_link 'module_authorization',
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'AdBanner'}))",
:priority=>6,
:active_for_app_auth => 'ad_banners',
:available_for => [:admin]
end
end
end