Orbit/vendor/built_in_modules/calendar_new/init.rb

35 lines
1.3 KiB
Ruby

module CalendarNew
OrbitApp.registration "CalendarNew",:type=> 'ModuleApp' do
module_label 'calendar.calendar'
base_url File.expand_path File.dirname(__FILE__)
# personal_plugin :enable => true,:path=>"panel/calendar/plugin/profile",:i18n=>'admin.calendar'
version "0.1"
organization "Rulingcom"
author "RD dep"
intro "I am intro"
update_info 'some update_info'
side_bar do
head_label_i18n 'calendar.calendar',:icon_class=>"icons-calendar"
available_for [:admin,:guest,:manager,:sub_manager]
active_for_controllers ({:private=>['events'],:public=>['panel/calendar_new/back_end/tags']})
head_link_path "panel_calendar_new_back_end_events_path"
context_link 'calendar.new_category',
:link_path=>"new_panel_calendar_new_back_end_event_category_path" ,
:priority=>3,
:active_for_action=>{:event_categories=>:new},
:available_for => [:manager]
context_link 'calendar.categories',
:link_path=>"panel_calendar_new_back_end_event_categories_path" ,
:priority=>2,
:active_for_action=>{:event_categories=>:index},
:available_for => [:manager]
end
end
end