Show More
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml...
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml
* bootrapize the user_admin
* now considering user.enabled
* tidy up route
References:
File last commit:
Show/Diff file:
Action:
config/routes.rb
| 54 lines
| 1.2 KiB
| text/x-ruby
| RubyLexer
|
|
r318 | CafeGrader::Application.routes.draw do | ||
r553 | root :to => 'main#login' | |||
r410 | ||||
|
r318 | resources :contests | ||
resources :sites | ||||
|
r266 | |||
r562 | resources :announcements do | |||
member do | ||||
get 'toggle' | ||||
end | ||||
end | ||||
resources :problems do | ||||
member do | ||||
get 'toggle' | ||||
end | ||||
collection do | ||||
get 'turn_all_off' | ||||
get 'turn_all_on' | ||||
get 'import' | ||||
get 'manage' | ||||
end | ||||
end | ||||
r558 | ||||
r474 | resources :grader_configuration, controller: 'configurations' | |||
r562 | resources :users do | |||
member do | ||||
get 'toggle_activate', 'toggle_enable' | ||||
end | ||||
end | ||||
|
r318 | match 'tasks/view/:file.:ext' => 'tasks#view' | ||
match 'tasks/download/:id/:file.:ext' => 'tasks#download' | ||||
r553 | match 'heartbeat/:id/edit' => 'heartbeat#edit' | |||
|
r318 | |||
r553 | #main | |||
get "main/list" | ||||
r559 | get 'main/submission(/:id)', to: 'main#submission', as: 'main_submission' | |||
r540 | ||||
r560 | #report | |||
get 'report/problem_hof(/:id)', to: 'report#problem_hof', as: 'report_problem_hof' | ||||
r562 | get "report/login" | |||
r560 | ||||
|
r318 | # See how all your routes lay out with "rake routes" | ||
# This is a legacy wild controller route that's not recommended for RESTful applications. | ||||
# Note: This route will make all actions in every controller accessible via GET requests. | ||||
match ':controller(/:action(/:id))(.:format)' | ||||
|
r0 | end | ||