2014-06-04 04:55:35 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
|
|
|
namespace :admin do
|
2014-07-01 10:19:07 +00:00
|
|
|
get 'writing_conference_setting' => "writing_conferences#setting"
|
2015-12-15 11:33:41 +00:00
|
|
|
get 'writing_conferences/download_excel_format' => 'writing_conferences#excel_format'
|
|
|
|
post 'writing_conferences/import_from_excel' => 'writing_conferences#import_from_excel'
|
2014-07-01 10:19:07 +00:00
|
|
|
|
|
|
|
resources :writing_conferences do
|
|
|
|
collection do
|
|
|
|
get 'toggle_hide' => 'writing_conferences#toggle_hide'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :members do
|
|
|
|
collection do
|
|
|
|
scope '(:name-:uid)' do
|
|
|
|
resources :writing_conferences do
|
|
|
|
collection do
|
|
|
|
get 'frontend_setting' => 'writing_conferences#frontend_setting'
|
|
|
|
post 'update_frontend_setting' => 'writing_conferences#update_frontend_setting'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :conference_paper_types
|
|
|
|
resources :conference_paper_levels
|
|
|
|
resources :conference_author_types
|
|
|
|
resources :tags
|
2014-06-04 04:55:35 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|