module ErEmail OrbitApp.registration "ErEmail",:type=> 'ModuleApp' do module_label 'er_email.er_email' base_url File.expand_path File.dirname(__FILE__) # personal_plugin :enable => true,:path=>"panel/er_email/plugin/profile",:i18n=>'er_email.er_email' version "0.1" organization "Rulingcom" author "RD dep" intro "I am intro" update_info 'some update_info' side_bar do head_label_i18n 'er_email.er_email',:icon_class=>"icons-paperplane" available_for [:admin,:guest,:manager,:sub_manager] active_for_controllers ({:private=>['email_er_categorys','email_ers', 'approvals']}) active_for_object_auth ['EmailErCategory'] head_link_path "panel_er_email_back_end_email_ers_path" context_link 'all', :link_path=>"panel_er_email_back_end_email_ers_path" , :priority=>1, :active_for_action=>{:email_ers=>:index}, :available_for => [:all] context_link 'add', :link_path=>"new_panel_er_email_back_end_email_er_path" , :priority=>2, :active_for_action=>{:email_ers=>:new}, :available_for => [:sub_manager] context_link 'categories', :link_path=>"panel_er_email_back_end_email_er_categorys_path" , :priority=>3, :active_for_action=>{:email_er_categorys=>:index}, :available_for => [:manager] context_link 'er_email.approval_setting', :link_path=>"panel_er_email_back_end_approval_setting_path" , :priority=>5, :active_for_action=>{:approvals=>:setting}, :active_for_object_auth => 'EmailErCategory', :available_for => [:manager] context_link 'module_authorization', :link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'ErEmail'}))", :priority=>6, :active_for_app_auth => 'ErEmail' end end end