2014-10-27 11:01:37 +00:00
|
|
|
module RegisteredSites
|
|
|
|
class Engine < ::Rails::Engine
|
|
|
|
initializer "registered_sites" do
|
|
|
|
OrbitApp.registration "RegisteredSites", :type => "ModuleApp" do
|
|
|
|
module_label "registered_sites.registered_sites"
|
|
|
|
base_url File.expand_path File.dirname(__FILE__)
|
2019-03-27 10:29:11 +00:00
|
|
|
widget_methods ["site_count_widget"]
|
|
|
|
widget_settings [{"data_count"=>30}]
|
2014-10-27 11:01:37 +00:00
|
|
|
authorizable
|
2014-12-02 12:21:20 +00:00
|
|
|
taggable "RegisteredSite"
|
|
|
|
categorizable
|
2021-07-15 08:59:00 +00:00
|
|
|
set_keyword_contstraints ['/git-auth','/register/','/site/permissions','/site/send_email']
|
2014-10-27 11:01:37 +00:00
|
|
|
side_bar do
|
|
|
|
head_label_i18n 'registered_sites.registered_sites', icon_class: "icons-earth"
|
2014-12-11 09:59:00 +00:00
|
|
|
available_for "users"
|
2014-12-11 11:36:23 +00:00
|
|
|
active_for_controllers (['admin/registered_sites','admin/customization_logs'])
|
2014-10-27 11:01:37 +00:00
|
|
|
head_link_path "admin_registered_sites_path"
|
|
|
|
|
|
|
|
context_link 'registered_sites.all',
|
|
|
|
:link_path=>"admin_registered_sites_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/registered_sites'=>"index"},
|
|
|
|
:available_for => 'users'
|
2014-12-02 12:21:20 +00:00
|
|
|
|
2014-12-04 13:59:49 +00:00
|
|
|
context_link 'registered_sites.customization_log',
|
|
|
|
:link_path=>"admin_customization_logs_path",
|
|
|
|
:priority=>2,
|
|
|
|
:active_for_action=>{'admin/customization_logs'=>'index'},
|
|
|
|
:available_for => 'sub_managers'
|
|
|
|
|
2014-12-02 12:21:20 +00:00
|
|
|
context_link 'categories',
|
|
|
|
:link_path=>"admin_module_app_categories_path" ,
|
|
|
|
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'registered_site').id}",
|
2014-12-04 13:59:49 +00:00
|
|
|
:priority=>3,
|
2014-12-02 12:21:20 +00:00
|
|
|
:active_for_action=>{'admin/registered_sites'=>'categories'},
|
|
|
|
:active_for_category => 'RegisteredSite',
|
|
|
|
:available_for => 'managers'
|
2020-04-01 03:44:59 +00:00
|
|
|
|
|
|
|
context_link 'registered_sites.bundle_update_remote_show',
|
|
|
|
:link_path=>"bundle_update_remote_show_admin_registered_sites_path",
|
|
|
|
:priority=>4,
|
|
|
|
:active_for_action=>{'admin/registered_sites'=>'bundle_update_remote_show'},
|
|
|
|
:available_for => 'managers'
|
|
|
|
|
|
|
|
context_link 'registered_sites.announcement',
|
|
|
|
:link_path=>"announcement_admin_registered_sites_path",
|
|
|
|
:priority=>5,
|
|
|
|
:active_for_action=>{'admin/registered_sites'=>'announcement'},
|
|
|
|
:available_for => 'managers'
|
2014-10-27 11:01:37 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|