default widgets and sidebar.

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-12-24 16:38:35 +08:00
1 parent 6995bb1622
commit 5f712622ad
28 files changed
+344 -162

No files matched your search

+71 -75
View File
@@ -901,78 +901,74 @@
# other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
# body: "以下欄位發生問題:"
# errors:
# format: "%{attribute} %{message}"
# messages:
# inclusion: "沒有包含在列表中"
# exclusion: "是被保留的關鍵字"
# invalid: "是無效的"
# confirmation: "不符合確認值"
# accepted: "必須是可被接受的"
# empty: "不能留空"
# blank: "不能是空白字元"
# too_long: "過長(最長是 %{count} 個字)"
# too_short: "過短(最短是 %{count} 個字)"
# wrong_length: "字數錯誤(必須是 %{count} 個字)"
# not_a_number: "不是數字"
# not_an_integer: "必須是整數"
# greater_than: "必須大於 %{count}"
# greater_than_or_equal_to: "必須大於或等於 %{count}"
# equal_to: "必須等於 %{count}"
# less_than: "必須小於 %{count}"
# less_than_or_equal_to: "必須小於或等於 %{count}"
# odd: "必須是奇數"
# even: "必須是偶數"
# template:
# header:
# one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
# other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
# body: "以下欄位發生問題:"
# widget:
# default_widget: 系統預設Widget
# _default_widget:
# style1: 表格列表
# style2: 單行列佐圖(同邊)
# style3: 多行列佐圖(同邊)
# style4: 多行列佐圖(異邊)
# style5: 單行列佐單圖(同邊)
# # : <<<<<<< HEAD
# mongoid:
# models:
# news_bulletin: 新聞
# bulletin: 公告
# ad_banner: 廣告輪播
# web_link: 連結管理
# attributes:
# news_bulletin:
# title: 新聞標題
# bulletin:
# title: 公告標題
# ad_banner:
# title: 標題
# web_link:
# title: 名稱
# url: 路徑
# # : =======
# helpers:
# select:
# prompt: "請選擇"
# submit:
# create: "新增%{model}"
# update: "更新%{model}"
# submit: "儲存%{model}"
# modal:
# save_and_close: "儲存並關閉"
# close: "關閉"
# preview: "預覽"
# sys:
# not_previewable: "不支援預覽"
# limit_of_upload_file_size: "上傳檔案大小限制: %{best_size}"
# preview_only_for_img: "預覽僅支援:jpg,png,gif,bmp...等圖片格式"
# can_not_display_due_to_no_context: "因為沒有中文版本,所以無法顯示"
# module_page_lang_not_support: "很抱歉,本頁沒有開放中文版本"
# object_disable:
# change_to_true: "設為停用"
# change_to_false: "重新啓用"
# # : >>>>>>> various_bugs
# >>>>>>> put module app json into init,making orbit app work with module app.
errors:
format: "%{attribute} %{message}"
messages:
inclusion: "沒有包含在列表中"
exclusion: "是被保留的關鍵字"
invalid: "是無效的"
confirmation: "不符合確認值"
accepted: "必須是可被接受的"
empty: "不能留空"
blank: "不能是空白字元"
too_long: "過長(最長是 %{count} 個字)"
too_short: "過短(最短是 %{count} 個字)"
wrong_length: "字數錯誤(必須是 %{count} 個字)"
not_a_number: "不是數字"
not_an_integer: "必須是整數"
greater_than: "必須大於 %{count}"
greater_than_or_equal_to: "必須大於或等於 %{count}"
equal_to: "必須等於 %{count}"
less_than: "必須小於 %{count}"
less_than_or_equal_to: "必須小於或等於 %{count}"
odd: "必須是奇數"
even: "必須是偶數"
template:
header:
one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
body: "以下欄位發生問題:"
widget:
default_widget: 系統預設Widget
_default_widget:
style1: 表格列表
style2: 單行列佐圖(同邊)
style3: 多行列佐圖(同邊)
style4: 多行列佐圖(異邊)
style5: 單行列佐單圖(同邊)
mongoid:
models:
news_bulletin: 新聞
bulletin: 公告
ad_banner: 廣告輪播
web_link: 連結管理
attributes:
news_bulletin:
title: 新聞標題
bulletin:
title: 公告標題
ad_banner:
title: 標題
web_link:
title: 名稱
url: 路徑
helpers:
select:
prompt: "請選擇"
submit:
create: "新增%{model}"
update: "更新%{model}"
submit: "儲存%{model}"
modal:
save_and_close: "儲存並關閉"
close: "關閉"
preview: "預覽"
sys:
not_previewable: "不支援預覽"
limit_of_upload_file_size: "上傳檔案大小限制: %{best_size}"
preview_only_for_img: "預覽僅支援:jpg,png,gif,bmp...等圖片格式"
can_not_display_due_to_no_context: "因為沒有中文版本,所以無法顯示"
module_page_lang_not_support: "很抱歉,本頁沒有開放中文版本"
object_disable:
change_to_true: "設為停用"
change_to_false: "重新啓用"
+3
View File
@@ -232,6 +232,7 @@ Orbit::Application.routes.draw do
# match '/desktop_orbit/eventajaxload' => 'desktop_publications#update_journal'
scope '/front' do
match 'show_banner/:id' => 'front#show_banner', :as => :front_show_banner
match 'show_footer' => 'front#show_footer', :as => :front_show_footer
@@ -242,6 +243,8 @@ Orbit::Application.routes.draw do
end
match '/panel/orbit_app/widget/:type' => 'default_widget#default_widget'
match '/panel/:app_name/front_end/:app_action/:id(/:controller_action)' => 'pages#show_from_link', :constraints => lambda { |request|
!request.query_string.include?("inner=true")
}