This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/vendor/built_in_modules/ask/init.rb

60 lines
1.9 KiB
Ruby
Raw Permalink Normal View History

2013-05-27 09:29:59 +00:00
module Ask
OrbitApp.registration "Ask",:type=> 'ModuleApp' do
module_label 'ask.ask'
base_url File.expand_path File.dirname(__FILE__)
# personal_plugin :enable => true,:path=>"panel/faq/plugin/profile",:i18n=>'admin.faq'
version "0.1"
organization "Rulingcom"
author "RD dep"
intro "I am intro"
update_info 'some update_info'
front_end do
app_page 'ask_questions' do
frontend_i18n 'ask.ask'
end
2013-08-27 04:36:29 +00:00
app_page 'thank_you' do
frontend_i18n "ask.thank_you"
end
2013-05-27 09:29:59 +00:00
end
widgets do
default_widget do
end
2013-08-27 04:36:29 +00:00
categories_query 'Category.all'
2013-05-27 09:29:59 +00:00
end
2013-08-27 04:36:29 +00:00
authorizable
approvable
categorizable
2013-05-27 09:29:59 +00:00
side_bar do
head_label_i18n 'ask.ask', icon_class: 'icons-light-bulb'
2013-05-27 09:29:59 +00:00
available_for [:admin,:manager,:sub_manager]
2013-08-27 04:36:29 +00:00
active_for_controllers ({:private=>['ask_questions', 'ask_admins', 'ask_ackowledgements']})
2013-05-27 09:29:59 +00:00
active_for_controllers({ private: ['ask_questions'] })
head_link_path "panel_ask_back_end_ask_questions_path"
2013-08-27 04:36:29 +00:00
context_link 'announcement.categories',
:link_path=>"admin_module_app_categories_path(get_module_app)" ,
:priority=>3,
:active_for_category => 'Ask',
:available_for => [:admin]
2013-05-27 09:29:59 +00:00
2013-08-27 04:36:29 +00:00
context_link 'ask.acknowledgement', link_path: 'panel_ask_back_end_ask_acknowledgements_path',
priority: 1,
available_for: [:all]
2013-08-27 04:36:29 +00:00
context_link 'ask.admin', link_path: 'panel_ask_back_end_ask_admins_path',
priority: 1,
available_for: [:all]
2013-08-27 04:36:29 +00:00
context_link 'ask.export', link_path: 'export_panel_ask_back_end_ask_questions_path',
2013-05-27 09:29:59 +00:00
priority: 1,
available_for: [:all]
end
end
end