50 lines
1.6 KiB
Ruby
50 lines
1.6 KiB
Ruby
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
|
|
end
|
|
|
|
widgets do
|
|
default_widget do
|
|
end
|
|
end
|
|
|
|
side_bar do
|
|
head_label_i18n 'ask.ask', icon_class: 'icons-light-bulb'
|
|
available_for [:admin]
|
|
active_for_controllers({ private: ['ask_questions'] })
|
|
head_link_path "panel_ask_back_end_ask_questions_path"
|
|
|
|
context_link 'categories', link_path: 'panel_ask_back_end_ask_categories_path',
|
|
priority: 1,
|
|
active_for_action: {:ask_categories=>:index},
|
|
available_for: [:manager]
|
|
|
|
context_link 'ask.acknowledgement', link_path: 'panel_ask_back_end_ask_acknowledgements_path',
|
|
priority: 1,
|
|
available_for: [:manager]
|
|
|
|
context_link 'ask.admin', link_path: 'panel_ask_back_end_ask_admins_path',
|
|
priority: 1,
|
|
available_for: [:manager]
|
|
|
|
context_link 'ask.export', link_path: 'export_panel_ask_back_end_ask_questions_path',
|
|
priority: 1,
|
|
available_for: [:manager]
|
|
end
|
|
|
|
end
|
|
end
|