Add mobile but remove news in it
This commit is contained in:
1 parent
cf91139b84
commit
3a9106c10d
66 files changed
+6943
-1
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
zh_tw:
|
||||
|
||||
mobile:
|
||||
bulletin: 公告
|
||||
contact: 聯絡資訊
|
||||
copyright: 版權宣告
|
||||
home: 首頁
|
||||
language: 語言
|
||||
location: 地理位置
|
||||
location_description: '<h3>國立政治大學</h3>11605 臺北市文山區指南路二段64號'
|
||||
page: 頁面
|
||||
@@ -241,6 +241,18 @@ 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/:app_name/front_end/:app_action/:id(/:controller_action)' => 'pages#show_from_link', :constraints => lambda { |request|
|
||||
!request.query_string.include?("inner=true")
|
||||
|
||||
Reference in new issue
Block a user