2012-04-29 22:27:38 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
namespace :panel do
|
|
|
|
namespace :news do
|
|
|
|
namespace :back_end do
|
2012-05-18 10:47:18 +00:00
|
|
|
match 'public' => "news#public",:as => :public
|
|
|
|
match 'approval_setting' => "news_approvals#setting" ,:as => :approval_setting,:via => :get
|
|
|
|
match 'approval_setting' => "news_approvals#update_setting" ,:as => :approval_setting,:via => :post
|
|
|
|
match 'approval_setting' => "news_approvals#user_list" ,:as => :approval_user_list,:via => :put
|
2012-04-29 22:27:38 +00:00
|
|
|
resources :news_bulletins do
|
2012-05-18 10:47:18 +00:00
|
|
|
match "approve/:news_bulletin_id" => "news_approvals#preview_and_approve",:as => :approval_preview,:via => :put
|
|
|
|
match "approve/:news_bulletin_id" => "news_approvals#approve",:as => :approve,:via => :post
|
2012-04-29 22:27:38 +00:00
|
|
|
match "link_quick_add/:news_bulletin_id" => "news_bulletins#link_quick_add" ,:as => :link_quick_add
|
|
|
|
match "link_quick_edit/:news_bulletin_id" => "news_bulletins#link_quick_edit" ,:as => :link_quick_edit
|
2012-09-04 01:24:12 +00:00
|
|
|
|
2012-04-29 22:27:38 +00:00
|
|
|
member do
|
|
|
|
get 'load_quick_edit'
|
|
|
|
end
|
|
|
|
collection do
|
2012-09-04 01:24:12 +00:00
|
|
|
post "preview"
|
2012-08-13 16:59:01 +00:00
|
|
|
get 'delete'
|
2012-04-29 22:27:38 +00:00
|
|
|
end
|
|
|
|
match "file_quick_add/:news_bulletin_id" => "news_bulletins#file_quick_add" ,:as => :file_quick_add
|
|
|
|
match "file_quick_edit/:news_bulletin_id" => "news_bulletins#file_quick_edit" ,:as => :file_quick_edit
|
|
|
|
end
|
|
|
|
|
2012-05-11 08:46:36 +00:00
|
|
|
resources :news_bulletin_categorys
|
2012-04-29 22:27:38 +00:00
|
|
|
|
|
|
|
resources :news_bulletin_links, :controller => 'news_bulletin_links' do
|
|
|
|
match "link_quick_edit/:news_bulletin_link_id" => "news_bulletin_links#link_quick_edit" ,:as => :link_quick_edit
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :news_bulletin_files, :controller => 'news_bulletin_files' do
|
|
|
|
match "file_quick_edit/:news_bulletin_file_id" => "news_bulletin_files#file_quick_edit" ,:as => :file_quick_edit
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :tags
|
|
|
|
end
|
|
|
|
namespace :front_end do
|
2012-08-07 11:21:54 +00:00
|
|
|
match "index_by_unit" => "news_bulletins#index_news_bulletins_by_unit",:as => :index_news_bulletins_by_unit
|
2012-05-04 10:49:07 +00:00
|
|
|
resources :news_bulletins # do
|
|
|
|
# match "preview" => "news_bulletins#preview_content",:as => :get_preview_content
|
|
|
|
# end
|
2012-04-29 22:27:38 +00:00
|
|
|
end
|
|
|
|
namespace :widget do
|
|
|
|
match "news_bulletins" => "news_bulletins#index"
|
2012-05-09 16:25:30 +00:00
|
|
|
match "home_banner" => "news_bulletins#home_banner"
|
2012-04-29 22:27:38 +00:00
|
|
|
match "news_bulletins_and_web_links" => "news_bulletins#news_bulletins_and_web_links"
|
|
|
|
match "reload_news_bulletins" => "news_bulletins#reload_news_bulletins"
|
|
|
|
match "reload_web_links" => "news_bulletins#reload_web_links"
|
|
|
|
match "news_bulletins_side_bar" => "news_bulletins#news_bulletins_side_bar"
|
2012-06-20 06:50:51 +00:00
|
|
|
match "news_bulletins_search_block" => "news_bulletins#news_bulletins_search_block"
|
2012-04-29 22:27:38 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|