From 6269c6d1e6872385058ed195745d08475818f86f Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 9 Aug 2013 14:49:11 +0800 Subject: [PATCH] Updated init.rb --- vendor/built_in_modules/ad_banner/init.rb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/vendor/built_in_modules/ad_banner/init.rb b/vendor/built_in_modules/ad_banner/init.rb index 12fd9f812..80e7d2788 100644 --- a/vendor/built_in_modules/ad_banner/init.rb +++ b/vendor/built_in_modules/ad_banner/init.rb @@ -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' @@ -9,7 +9,6 @@ module AdBanner author "RD dep" intro "I am intro" update_info 'some update_info' - taggable @@ -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