first version of app config and modified inits.
This commit is contained in:
1 parent
bfaa22052f
commit
71d5abae2e
36 files changed
+377
-264
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
module AdBanner
|
||||
OrbitApp.registration "AdBanner",:type=> 'ModuleApp' do
|
||||
module_label 'ad_banner.ad_banner'
|
||||
module_label 'miss_module_i18n.ad_banner'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
# personal_plugin :enable => true,:path=>"panel/ad_banner/plugin/profile",:i18n=>'admin.ad_banner'
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ zh_tw:
|
||||
editing_announcement_category: 編輯公告類別
|
||||
error:
|
||||
no_avilb_cate_for_posting: 公告必需有一個類別才能發送,請與管理員聯絡
|
||||
front_end:
|
||||
bulletins: 請LIN給名字前台頁
|
||||
new_bulletin_category: 新增公告類別
|
||||
search: 搜尋公告
|
||||
update_bulletin_success: 公告已成功更新
|
||||
|
||||
+10
-3
@@ -12,7 +12,9 @@ module Announcement
|
||||
update_info 'some update_info'
|
||||
|
||||
front_end do
|
||||
app_page 'bulletins'
|
||||
app_page 'bulletins' do
|
||||
frontend_i18n "announcement.front_end.bulletins"
|
||||
end
|
||||
end
|
||||
|
||||
category ["BulletinCategory"]
|
||||
@@ -21,13 +23,18 @@ module Announcement
|
||||
default_widget do
|
||||
query 'Bulletin.all'
|
||||
image :image
|
||||
field :postdate
|
||||
link_field :title,{:method => 'panel_announcement_front_end_bulletin_path',:args=>:self}
|
||||
link_field :bulletin_category_with_title,{:method => 'panel_announcement_front_end_bulletins_path',:args=>{:category_id => [:bulletin_category,:id]}}
|
||||
end
|
||||
|
||||
categories_query 'BulletinCategory.all'
|
||||
tags_query 'AnnouncementTag.all'
|
||||
|
||||
customize_widget "index","announcement.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","announcement.widget.bulletins_and_web_links"
|
||||
customize_widget "index" do
|
||||
widget_i18n "announcement.widget.index"
|
||||
style ["1","2"]
|
||||
end
|
||||
# item "index","announcement.widget.index",:default_template=>true,:fields=>["title","category","postdate"]
|
||||
# item "bulletins_and_web_links","announcement.widget.bulletins_and_web_links"
|
||||
end
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
zh_tw:
|
||||
|
||||
_locale: 中文
|
||||
|
||||
archive:
|
||||
widget:
|
||||
archive_files: 檔案室Wiget
|
||||
add: 新增
|
||||
back: 回去
|
||||
create: 創造
|
||||
|
||||
+4
-1
@@ -26,7 +26,10 @@ module Archive
|
||||
|
||||
# categories_query 'BulletinCategory.all'
|
||||
# tags_query 'ArchiveTag.all'
|
||||
customize_widget "archive_files","archive.widget.archive_files",:style=>[]
|
||||
customize_widget "archive_files" do
|
||||
widget_i18n "archive.widget.archive_files"
|
||||
style []
|
||||
end
|
||||
end
|
||||
|
||||
side_bar do
|
||||
|
||||
+14
-10
@@ -1,17 +1,21 @@
|
||||
class GalleryCategory
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
include OrbitCoreLib::ObjectAuthable
|
||||
include OrbitCoreLib::ObjectAuthable
|
||||
|
||||
ObjectAuthTitlesOptions = %W{new_album}
|
||||
APP_NAME = "album"
|
||||
ObjectAuthTitlesOptions = %W{new_album}
|
||||
APP_NAME = "album"
|
||||
|
||||
field :name, localize: true
|
||||
field :name, localize: true
|
||||
|
||||
has_many :gallery_albums, :autosave => true, :dependent => :destroy
|
||||
has_many :gallery_albums, :autosave => true, :dependent => :destroy
|
||||
|
||||
def pp_object
|
||||
name
|
||||
end
|
||||
def title
|
||||
name
|
||||
end
|
||||
|
||||
def pp_object
|
||||
name
|
||||
end
|
||||
end
|
||||
@@ -23,6 +23,8 @@ zh_tw:
|
||||
edit: 編輯
|
||||
delete_selected: 刪除選擇項目
|
||||
del_album?: "要刪除這本相簿嗎?"
|
||||
front_end:
|
||||
albums: 相簿前台
|
||||
album_not_found: 找不到此相簿
|
||||
pic_not_found: 找不到該照片
|
||||
save: 儲存
|
||||
@@ -33,6 +35,8 @@ zh_tw:
|
||||
set_cover: 設為封面
|
||||
sure?: "你確定嗎?"
|
||||
no_description: 沒有描述
|
||||
widget:
|
||||
widget1: Widget1
|
||||
widget_option:
|
||||
horizontal: 水平圖片數量
|
||||
vertical: 垂直圖片數量
|
||||
|
||||
+14
-3
@@ -11,7 +11,9 @@ module Gallery
|
||||
update_info 'some update_info'
|
||||
|
||||
front_end do
|
||||
app_page 'albums'
|
||||
app_page 'albums' do
|
||||
frontend_i18n "gallery.front_end.albums"
|
||||
end
|
||||
end
|
||||
|
||||
category ["gallery_categories"]
|
||||
@@ -25,8 +27,17 @@ module Gallery
|
||||
categories_query 'GalleryCategory.all'
|
||||
# tags_query 'GalleryTag.all'
|
||||
|
||||
customize_widget "albums","gallery.widget.albums",:fields=>[],:style=>[]
|
||||
|
||||
#* customize_widget "albums","gallery.widget.albums",:fields=>[],:style=>[],:options=>{"widget1"=>{"vertical"=>[1, 2], "horizontal"=>[1, 2, 3, 4, 5, 6], "album_id"=>{"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name}}}
|
||||
#* customize_widget_options_fields_i18n({"widget1"=>{"vertical"=>"gallery.widget_option.vertical", "horizontal"=>"gallery.widget_option.horizontal", "album_id"=>"gallery.widget_option.album"}} )
|
||||
|
||||
customize_widget "widget1" do
|
||||
widget_i18n "gallery.widget.widget1"
|
||||
style []
|
||||
options "vertical",:i18n => "gallery.widget_option.vertical",:options_item=>[1, 2]
|
||||
options "horizontal",:i18n => "gallery.widget_option.horizontal",:options_item=>[1, 2,3,4,5,6]
|
||||
options "album_id",:i18n =>"gallery.widget_option.album",:options_item => {"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name}
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
side_bar do
|
||||
|
||||
@@ -7,8 +7,8 @@ zh_tw:
|
||||
calendar: 日曆模組
|
||||
calendars: 日曆
|
||||
gallery: 相簿
|
||||
location: Location
|
||||
|
||||
location: (未命名)Location
|
||||
ad_banner: 廣告輪播
|
||||
|
||||
miss_plugin_i18n:
|
||||
personal_book: Personal Book
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalBook
|
||||
OrbitApp.registration "Book",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_book'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_book/plugin/profile",:i18n=>'miss_module_i18n.personal_book'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalDiploma
|
||||
OrbitApp.registration "Diploma",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_diploma'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_diploma/plugin/profile",:i18n=>'miss_plugin_i18n.personal_diploma'
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
module PersonalExperience
|
||||
OrbitApp.registration "Experience",:type=> 'ModuleApp' do
|
||||
module_label 'miss_plugin_i18n.personal_experience'
|
||||
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_experience/plugin/profile",:i18n=>'miss_plugin_i18n.personal_experience'
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalHonor
|
||||
OrbitApp.registration "Honor",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_honor'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_honor/plugin/profile",:i18n=>'miss_plugin_i18n.personal_honor'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalJournal
|
||||
OrbitApp.registration "Journal",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_journal'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_journal/plugin/profile",:i18n=>'miss_plugin_i18n.personal_journal'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalLab
|
||||
OrbitApp.registration "Lab",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_lab'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_lab/plugin/profile",:i18n=>'miss_plugin_i18n.personal_lab'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalPatent
|
||||
OrbitApp.registration "Patent",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_patent'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_patent/plugin/profile",:i18n=>'miss_plugin_i18n.personal_patent'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalProject
|
||||
OrbitApp.registration "Research Project",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_project'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_project/plugin/profile",:i18n=>'miss_plugin_i18n.personal_project'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalResearch
|
||||
OrbitApp.registration "Research",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_research'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_research/plugin/profile",:i18n=>'miss_plugin_i18n.personal_research'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module PersonalSeminar
|
||||
OrbitApp.registration "Seminar",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'miss_plugin_i18n.personal_seminar'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_seminar/plugin/profile",:i18n=>'miss_plugin_i18n.personal_seminar'
|
||||
|
||||
|
||||
+3
-2
@@ -21,8 +21,9 @@ module WebResource
|
||||
categories_query 'BulletinCategory.all'
|
||||
tags_query 'WebResourceTag.all'
|
||||
|
||||
customize_widget "home_list","web_resource.widget.home_list"
|
||||
|
||||
customize_widget "home_list" do
|
||||
widget_i18n "web_resource.widget.home_list"
|
||||
end
|
||||
end
|
||||
|
||||
side_bar do
|
||||
|
||||
Reference in new issue
Block a user