Merge branch 'sidebar_config' into ntu

Conflicts:
	app/controllers/admin/object_auths_new_interface_controller.rb
	app/controllers/orbit_backend_controller.rb
	app/controllers/orbit_widget_controller.rb
	app/models/module_app.rb
	app/views/admin/page_parts/_module_widget.html.erb
	config/locales/zh_tw.yml
	lib/parsers/parser_common.rb
	lib/parsers/parser_front_end.rb
This commit is contained in:
Fu Matthew committed 2013-01-08 14:17:21 +08:00
commit 76296ab29b
160 files changed
+8659 -1037

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ Orbit::Application.configure do
config.whiny_nils = true
# Show full error reports and disable caching
config.consider_all_requests_local = false
config.consider_all_requests_local = true
#config.action_view.debug_rjs = true
config.action_controller.perform_caching = true
+1 -1
View File
@@ -80,7 +80,7 @@ Devise.setup do |config|
# The time you want to timeout the user session without activity. After this
# time the user will be asked for credentials again.
# config.timeout_in = 10.minutes
config.timeout_in = 10.minutes
config.timeout_in = 5.days
# ==> Configuration for :lockable
# Defines which strategy will be used to lock an account.
+2
View File
@@ -3,3 +3,5 @@
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
Mime::Type.register_alias "text/html", :mobile
@@ -1,16 +0,0 @@
#encoding: utf-8
require 'mysql2'
$nccu_ldap_connection
module NccuLdapConnection
BASE = 'ou=People,dc=nccu,dc=edu,dc=tw'
def self.establish
$nccu_ldap_connection = Net::LDAP.new
$nccu_ldap_connection.port =LDAP_CONFIG["port"]
$nccu_ldap_connection.host = LDAP_CONFIG["host"]
$nccu_ldap_connection.authenticate(LDAP_CONFIG["authenticate_info"],LDAP_CONFIG["authenticate_pwd"])
end
end
+5 -1
View File
@@ -284,7 +284,9 @@ en:
text: Text Area
passed: Approved
password: Password
password_confirmation: Password Confirmation
password_change: Change password
password_confirmation: Password confirmation
password_current: Current password
pending: Pending
picture: Picture
placeholder: Placeholder
@@ -327,11 +329,13 @@ en:
description: Site description
description_help: ''
footer: Site footer
header: Site header
footer_help: ''
info: Site information
keywords: Site keywords
keywords_help: ''
language: Site language
mobile_version: Mobile version
search: Site Search
search_help: Please Enter the search argument for Google search.
settings: Site setting
+11
View File
@@ -0,0 +1,11 @@
en:
mobile:
bulletin: Bulletin
contact: Contact
copyright: Copyright
home: Home
language: Language
location: Location
location_description: '<h3>國立政治大學</h3>11605 臺北市文山區指南路二段64號'
page: Page
+11
View File
@@ -0,0 +1,11 @@
zh_tw:
mobile:
bulletin: 公告
contact: 聯絡資訊
copyright: 版權宣告
home: 首頁
language: 語言
location: 地理位置
location_description: '<h3>國立政治大學</h3>11605 臺北市文山區指南路二段64號'
page: 頁面
+8
View File
@@ -234,6 +234,9 @@ zh_tw:
text: 文字區域
passed: 通過審核
password: 密碼
password_change: 更改密碼
password_confirmation: 確認密碼
password_current: 目前的密碼
pending: 待審核
picture: 圖片
postdate: 張貼日期
@@ -270,11 +273,13 @@ zh_tw:
description: 網站描述
description_help: ''
footer: 網站頁尾
header: 網站頁首
footer_help: ''
info: 網站資訊
keywords: 搜尋關鍵字
keywords_help: ''
language: 網站語言
mobile_version: 手機版
search: 網站搜尋
search_help: 請輸入送交Google搜尋的參數
settings: 基本設定
@@ -327,6 +332,9 @@ zh_tw:
page: 頁面已更新成功
user: 使用者已更新成功
success_: 更新成功
paper: Paper was successfully updated.
user: User was successfully updated.
success_: S使用者已更新成功
update_: 更新
update_at: 最後更新時間
url: 網址
+32 -18
View File
@@ -164,25 +164,25 @@ Orbit::Application.routes.draw do
end
match "desktop" => "desktop#index"
namespace :desktop do
match "desktop" => "desktop#desktop"
match '/journal_pages/get_journals_json' => 'journal_pages#get_journals_json'
match '/desktop'=>'desktop#desktop'
match '/app_manager'=>'desktop#app_manager'
match '/allsections'=>'desktop#allsections'
match '/settings'=>'desktop#settings'
match '/get_desktop_settings/'=>'desktop#get_desktop_settings'
match '/save_desktop_settings/'=>'desktop#save_desktop_settings'
match '/getgroups/'=>'desktop#getgroups'
match '/getsectionlist/'=>'desktop#getsectionlist'
match '/themes/'=>'desktop#themes'
match '/sections/'=>'desktop#sections'
match '/getapplist/'=>'desktop#getapplist'
match '/newpositions/'=>'desktop#newpositions'
match '/connections/'=>'desktop#connections'
match '/widget_layout' => 'desktop#widget_layout'
match '/temp_func/'=>'desktop#temp_func'
match "/desktop/desktop" => "desktop#desktop"
match '/desktop/desktop'=>'desktop#desktop'
match '/desktop/app_manager'=>'desktop#app_manager'
match '/desktop/allsections'=>'desktop#allsections'
match '/desktop/settings'=>'desktop#settings'
match '/desktop/get_desktop_settings/'=>'desktop#get_desktop_settings'
match '/desktop/save_desktop_settings/'=>'desktop#save_desktop_settings'
match '/desktop/getgroups/'=>'desktop#getgroups'
match '/desktop/getsectionlist/'=>'desktop#getsectionlist'
match '/desktop/themes/'=>'desktop#themes'
match '/desktop/sections/'=>'desktop#sections'
match '/desktop/getapplist/'=>'desktop#getapplist'
match '/desktop/newpositions/'=>'desktop#newpositions'
match '/desktop/connections/'=>'desktop#connections'
match '/desktop/widget_layout' => 'desktop#widget_layout'
match '/desktop/temp_func/'=>'desktop#temp_func'
namespace :desktop do
match '/journal_pages/get_journals_json' => 'journal_pages#get_journals_json'
resources :journal_pages, except: :show
resources :journal_lists, only: :index
resources :co_authors, except: :show
@@ -241,8 +241,22 @@ Orbit::Application.routes.draw do
match 'show_sitemap' => 'front#show_sitemap', :as => :front_show_sitemap
end
scope '/mobile' do
match 'announcement' => 'mobile#announcement', :as => 'mobile_announcement'
match 'announcement_content/:id' => 'mobile#announcement_content', :as => 'mobile_announcement_content'
match 'dialog_contact' => 'mobile#dialog_contact', :as => 'mobile_dialog_contact'
match 'dialog_copyright' => 'mobile#dialog_copyright', :as => 'mobile_dialog_copyright'
match 'dialog_language' => 'mobile#dialog_language', :as => 'mobile_dialog_language'
match 'map' => 'mobile#map', :as => 'mobile_map'
match 'page' => 'mobile#page', :as => 'mobile_page'
match 'page_content/:id' => 'mobile#page_content', :as => 'mobile_page_content'
root :to => 'mobile#index', :as => 'mobile'
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")
}