Description:
before upgrading to rails 5.2
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r749:6336d013fbfd - - 2 files changed: 3 inserted, 2 deleted
@@ -1,15 +1,15 | |||||
|
1 | %h1 Bulk Manage User |
|
1 | %h1 Bulk Manage User |
|
2 |
|
2 | ||
|
3 | - = form_tag bulk_manage_user_admin_path |
|
3 | + = form_tag bulk_manage_user_admin_index_path |
|
4 | .row |
|
4 | .row |
|
5 | .col-md-6 |
|
5 | .col-md-6 |
|
6 | .panel.panel-primary |
|
6 | .panel.panel-primary |
|
7 | .panel-title.panel-heading |
|
7 | .panel-title.panel-heading |
|
8 | Filter User |
|
8 | Filter User |
|
9 | .panel-body |
|
9 | .panel-body |
|
10 | Filtering users whose login match the following MySQL regex |
|
10 | Filtering users whose login match the following MySQL regex |
|
11 | .form-group |
|
11 | .form-group |
|
12 | = label_tag "regex", 'Regex Pattern' |
|
12 | = label_tag "regex", 'Regex Pattern' |
|
13 | = text_field_tag "regex", params[:regex], class: 'form-control' |
|
13 | = text_field_tag "regex", params[:regex], class: 'form-control' |
|
14 | %p |
|
14 | %p |
|
15 | Example |
|
15 | Example |
@@ -82,32 +82,33 | |||||
|
82 | end |
|
82 | end |
|
83 | collection do |
|
83 | collection do |
|
84 | get 'prob/:problem_id', to: 'submissions#index', as: 'problem' |
|
84 | get 'prob/:problem_id', to: 'submissions#index', as: 'problem' |
|
85 | get 'direct_edit_problem/:problem_id(/:user_id)', to: 'submissions#direct_edit_problem', as: 'direct_edit_problem' |
|
85 | get 'direct_edit_problem/:problem_id(/:user_id)', to: 'submissions#direct_edit_problem', as: 'direct_edit_problem' |
|
86 | get 'get_latest_submission_status/:uid/:pid', to: 'submissions#get_latest_submission_status', as: 'get_latest_submission_status' |
|
86 | get 'get_latest_submission_status/:uid/:pid', to: 'submissions#get_latest_submission_status', as: 'get_latest_submission_status' |
|
87 | end |
|
87 | end |
|
88 | end |
|
88 | end |
|
89 |
|
89 | ||
|
90 |
|
90 | ||
|
91 | #user admin |
|
91 | #user admin |
|
92 | resources :user_admin do |
|
92 | resources :user_admin do |
|
93 | collection do |
|
93 | collection do |
|
94 |
- |
|
94 | + match 'bulk_manage', via: [:get, :post] |
|
95 | get 'user_stat' |
|
95 | get 'user_stat' |
|
96 | get 'import' |
|
96 | get 'import' |
|
97 | get 'new_list' |
|
97 | get 'new_list' |
|
98 | get 'admin' |
|
98 | get 'admin' |
|
99 | get 'random_all_passwords' |
|
99 | get 'random_all_passwords' |
|
100 | get 'active' |
|
100 | get 'active' |
|
101 | get 'mass_mailing' |
|
101 | get 'mass_mailing' |
|
|
102 | + match 'create_from_list', via: [:get, :post] | ||
|
102 | end |
|
103 | end |
|
103 | member do |
|
104 | member do |
|
104 | get 'clear_last_ip' |
|
105 | get 'clear_last_ip' |
|
105 | end |
|
106 | end |
|
106 | end |
|
107 | end |
|
107 |
|
108 | ||
|
108 | resources :contest_management, only: [:index] do |
|
109 | resources :contest_management, only: [:index] do |
|
109 | collection do |
|
110 | collection do |
|
110 | get 'user_stat' |
|
111 | get 'user_stat' |
|
111 | get 'clear_stat' |
|
112 | get 'clear_stat' |
|
112 | get 'clear_all_stat' |
|
113 | get 'clear_all_stat' |
|
113 | end |
|
114 | end |
You need to be logged in to leave comments.
Login now