sidebar rewrited
This commit is contained in:
1 parent
5f712622ad
commit
53afb6ea0c
14 files changed
+395
-16
No files matched your search
+49
@@ -0,0 +1,49 @@
|
||||
module AdBanner
|
||||
OrbitApp.registration "AdBanner",:type=> 'ModuleApp' do
|
||||
module_label 'ad_banner.ad_banner'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
# personal_plugin :enable => true,:path=>"panel/ad_banner/plugin/profile",:i18n=>'admin.ad_banner'
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
|
||||
# front_end do
|
||||
# app_page 'bulletins'
|
||||
# end
|
||||
|
||||
# category ["BulletinCategory"]
|
||||
|
||||
# widgets do
|
||||
# # default_widget do
|
||||
# # query 'Bulletin.all'
|
||||
# # image :image
|
||||
# # end
|
||||
|
||||
# # categories_query 'BulletinCategory.all'
|
||||
# # tags_query 'AdBannerTag.all'
|
||||
|
||||
# # customize_widget "index","ad_banner.widget.index",:fields=>["title","category","postdate"],:style=>["cu_style_1","cu_style_2","cu_style_3","cu_style_4","cu_style_5"]
|
||||
# # customize_widget "bulletins_and_web_links","ad_banner.widget.bulletins_and_web_links"
|
||||
|
||||
# # item "index","ad_banner.widget.index",:default_template=>true,:fields=>["title","category","postdate"]
|
||||
# # item "bulletins_and_web_links","ad_banner.widget.bulletins_and_web_links"
|
||||
# end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'admin.ad_banner',:icon_class=>"icons-landscape"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['ad_banners', 'ad_images']})
|
||||
|
||||
head_link_path "admin_ad_banners_path"
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'ad_banner'}))",
|
||||
:priority=>6,
|
||||
:active_for_app_auth => 'ad_banners',
|
||||
:available_for => [:admin]
|
||||
end
|
||||
end
|
||||
end
|
||||
+2
-2
@@ -32,7 +32,7 @@ module Announcement
|
||||
end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'admin.announcement',:icon_class=>"icons-announcement"
|
||||
head_label_i18n 'admin.announcement',:icon_class=>"icons-megaphone"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['bulletins', 'bulletin_categorys', 'approvals','tags']})
|
||||
active_for_object_auth ['BulletinCategory']
|
||||
@@ -75,7 +75,7 @@ module Announcement
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'Announcement'}))",
|
||||
:priority=>6,
|
||||
:active_for_app_auth => 'Announcement',
|
||||
:available_for => [:manager]
|
||||
:available_for => [:admin]
|
||||
end
|
||||
end
|
||||
end
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
module Archive
|
||||
OrbitApp.registration "Archive",:type=> 'ModuleApp' do
|
||||
module_label 'miss_module_i18n.archive'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'admin.archive'
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
|
||||
front_end do
|
||||
app_page 'archive_files'
|
||||
end
|
||||
|
||||
widgets do
|
||||
# default_widget do
|
||||
# query 'Bulletin.all'
|
||||
# image :image
|
||||
# end
|
||||
|
||||
# categories_query 'BulletinCategory.all'
|
||||
# tags_query 'ArchiveTag.all'
|
||||
customize_widget "archive_files","archive.widget.archive_files",:style=>[]
|
||||
end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'miss_module_i18n.archive',:icon_class=>"icons-archive"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['archive_file_categorys'],:public=>['panel/archive/back_end/tags']})
|
||||
active_for_object_auth ['BulletinCategory']
|
||||
|
||||
head_link_path "panel_archive_back_end_archive_files_path"
|
||||
|
||||
context_link 'miss_module_i18n._archive.all',
|
||||
:link_path=>"panel_archive_back_end_archive_files_path" ,
|
||||
:priority=>1,
|
||||
:active_for_action=>{:archive_file=>:index},
|
||||
:available_for => [:all]
|
||||
|
||||
context_link 'add',
|
||||
:link_path=>"new_panel_archive_back_end_archive_file_path" ,
|
||||
:priority=>2,
|
||||
:active_for_action=>{:archive_file=>:new},
|
||||
:available_for => [:admin]
|
||||
|
||||
context_link 'categories',
|
||||
:link_path=>"panel_archive_back_end_archive_file_categorys_path" ,
|
||||
:priority=>3,
|
||||
:active_for_action=>{:archive_file_categorys=>:index},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'tags',
|
||||
:link_path=>"panel_archive_back_end_tags_path" ,
|
||||
:priority=>4,
|
||||
# :active_for_action=>{:bulletin_categorys=>:index},
|
||||
:available_for => [:admin]
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
module Calendar
|
||||
OrbitApp.registration "Calendar",:type=> 'ModuleApp' do
|
||||
module_label 'miss_module_i18n.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 'miss_module_i18n.calendar',:icon_class=>"icons-calendar"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['cals','calendar_categories'],:public=>['panel/calendar/back_end/tags']})
|
||||
|
||||
|
||||
head_link_path "panel_calendar_back_end_cals_path"
|
||||
|
||||
context_link 'calendar.calendars',
|
||||
:link_path=>"new_panel_calendar_back_end_cal_path" ,
|
||||
:priority=>1,
|
||||
:active_for_action=>{:cals=>:new},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'tags',
|
||||
:link_path=>"panel_calendar_back_end_tags_path" ,
|
||||
:priority=>4,
|
||||
# :active_for_action=>{:bulletin_categorys=>:index},
|
||||
:available_for => [:manager]
|
||||
end
|
||||
end
|
||||
end
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
module Gallery
|
||||
OrbitApp.registration "Gallery",:type=> 'ModuleApp' do
|
||||
module_label 'miss_module_i18n.gallery'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
# personal_plugin :enable => true,:path=>"panel/gallery/plugin/profile",:i18n=>'admin.gallery'
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "Visual dep"
|
||||
intro "A simple and amazing gallery"
|
||||
update_info 'some update_info'
|
||||
|
||||
front_end do
|
||||
app_page 'albums'
|
||||
end
|
||||
|
||||
category ["gallery_categories"]
|
||||
|
||||
widgets do
|
||||
# default_widget do
|
||||
# query 'Bulletin.all'
|
||||
# image :image
|
||||
# end
|
||||
|
||||
categories_query 'GalleryCategory.all'
|
||||
# tags_query 'GalleryTag.all'
|
||||
|
||||
customize_widget "albums","gallery.widget.albums",:fields=>[],:style=>[]
|
||||
|
||||
end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'miss_module_i18n.gallery',:icon_class=>"icons-pictures"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['albums','album_images','gallery_categories','/panel/gallery/back_end/tags']})
|
||||
active_for_object_auth ['BulletinCategory']
|
||||
|
||||
head_link_path "panel_gallery_back_end_albums_path"
|
||||
|
||||
context_link 'gallery.categories',
|
||||
:link_path=>"panel_gallery_back_end_gallery_categories_path" ,
|
||||
:priority=>3,
|
||||
:active_for_action=>{:gallery_categories=>:index},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'tags',
|
||||
:link_path=>"panel_gallery_back_end_tags_path" ,
|
||||
:priority=>4,
|
||||
# :active_for_action=>{:bulletin_categorys=>:index},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'gallery'}))",
|
||||
:priority=>6,
|
||||
:active_for_app_auth => 'gallery',
|
||||
:available_for => [:admin]
|
||||
end
|
||||
end
|
||||
end
|
||||
Vendored
+43
@@ -0,0 +1,43 @@
|
||||
module Location
|
||||
OrbitApp.registration "Location",:type=> 'ModuleApp' do
|
||||
module_label 'miss_module_i18n.location'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
# personal_plugin :enable => true,:path=>"panel/location/plugin/profile",:i18n=>'admin.location'
|
||||
|
||||
# version "0.1"
|
||||
# organization "Rulingcom"
|
||||
# author "RD dep"
|
||||
# intro "I am intro"
|
||||
# update_info 'some update_info'
|
||||
|
||||
# front_end do
|
||||
# app_page 'bulletins'
|
||||
# end
|
||||
|
||||
# category ["BulletinCategory"]
|
||||
|
||||
# widgets do
|
||||
# default_widget do
|
||||
# query 'Bulletin.all'
|
||||
# image :image
|
||||
# end
|
||||
|
||||
# categories_query 'BulletinCategory.all'
|
||||
# tags_query 'LocationTag.all'
|
||||
|
||||
# customize_widget "index","location.widget.index",:fields=>["title","category","postdate"],:style=>["cu_style_1","cu_style_2","cu_style_3","cu_style_4","cu_style_5"]
|
||||
# customize_widget "bulletins_and_web_links","location.widget.bulletins_and_web_links"
|
||||
# # item "index","location.widget.index",:default_template=>true,:fields=>["title","category","postdate"]
|
||||
# # item "bulletins_and_web_links","location.widget.bulletins_and_web_links"
|
||||
# end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'miss_module_i18n.location',:icon_class=>"icons-location"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['locations']})
|
||||
|
||||
head_link_path "panel_gprs_back_end_locations_path"
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
zh_tw:
|
||||
|
||||
miss_module_i18n:
|
||||
archive: 檔案室
|
||||
_archive:
|
||||
all: 全部檔案
|
||||
calendar: 日曆模組
|
||||
calendars: 日曆
|
||||
gallery: 相簿
|
||||
location: Location
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
module PageContent
|
||||
|
||||
OrbitApp.registration "PageContent",:type=> 'ModuleApp' do
|
||||
module_label 'page'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
# personal_plugin :enable => true,:path=>"panel/announcement/plugin/profile",:i18n=>'admin.announcement'
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
|
||||
front_end do
|
||||
app_page 'page_contexts'
|
||||
end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'page',:icon_class=>"icons-page"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['page_contexts']})
|
||||
active_for_object_auth ['PageContext']
|
||||
|
||||
head_link_path "panel_page_content_back_end_page_contexts_path"
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'page_content'}))",
|
||||
:priority=>1,
|
||||
:active_for_app_auth => 'PageContext',
|
||||
:available_for => [:admin]
|
||||
end
|
||||
end
|
||||
end
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
module WebResource
|
||||
OrbitApp.registration "WebResource",:type=> 'ModuleApp' do
|
||||
module_label 'link'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
# personal_plugin :enable => true,:path=>"panel/web_resource/plugin/profile",:i18n=>'admin.web_resource'
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
|
||||
category ["WebLinkCategory"]
|
||||
|
||||
widgets do
|
||||
# default_widget do
|
||||
# query 'Bulletin.all'
|
||||
# image :image
|
||||
# end
|
||||
|
||||
categories_query 'BulletinCategory.all'
|
||||
tags_query 'WebResourceTag.all'
|
||||
|
||||
customize_widget "home_list","web_resource.widget.home_list"
|
||||
|
||||
end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'link',:icon_class=>"icons-link"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['web_links', 'web_link_categorys']})
|
||||
active_for_object_auth ['WebLinkCategory']
|
||||
|
||||
head_link_path "panel_web_resource_back_end_web_links_path"
|
||||
|
||||
context_link 'list_',
|
||||
:link_path=>"panel_web_resource_back_end_web_links_path" ,
|
||||
:priority=>1,
|
||||
:active_for_action=>{:bulletins=>:index},
|
||||
:available_for => [:all]
|
||||
|
||||
context_link 'link',
|
||||
:link_path=>"new_panel_web_resource_back_end_web_link_path" ,
|
||||
:priority=>2,
|
||||
:active_for_action=>{:bulletins=>:new},
|
||||
:available_for => [:sub_manager]
|
||||
|
||||
context_link 'categories',
|
||||
:link_path=>"panel_web_resource_back_end_web_link_categorys_path" ,
|
||||
:priority=>3,
|
||||
:active_for_action=>{:bulletin_categorys=>:index},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'tags',
|
||||
:link_path=>"panel_web_resource_back_end_tags_path" ,
|
||||
:priority=>4,
|
||||
# :active_for_action=>{:bulletin_categorys=>:index},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'web_resource'}))",
|
||||
:priority=>6,
|
||||
:active_for_app_auth => 'web_resource',
|
||||
:available_for => [:admin]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user