Refactor external_user_statistics to own controller action
This commit is contained in:

committed by
Sebastian Serth

parent
6ca5982a45
commit
2141fdb1ac
@ -477,6 +477,7 @@ de:
|
||||
feedback: Feedback
|
||||
requests_for_comments: Kommentaranfragen
|
||||
study_group_dashboard: Live Dashboard
|
||||
external_user_statistics: Statistik für externe Nutzer
|
||||
show:
|
||||
is_unpublished: Aufgabe ist deaktiviert
|
||||
statistics:
|
||||
|
@ -477,6 +477,7 @@ en:
|
||||
feedback: Feedback
|
||||
requests_for_comments: Requests for Comments
|
||||
study_group_dashboard: Live Dashboard
|
||||
external_user_statistics: External User Statistics
|
||||
show:
|
||||
is_unpublished: Exercise is unpublished
|
||||
statistics:
|
||||
|
@ -117,7 +117,9 @@ Rails.application.routes.draw do
|
||||
resources :user_exercise_feedbacks, except: %i[show index]
|
||||
|
||||
resources :external_users, only: %i[index show], concerns: :statistics do
|
||||
resources :exercises, concerns: :statistics
|
||||
resources :exercises do
|
||||
get :statistics, to: 'exercises#external_user_statistics', on: :member
|
||||
end
|
||||
member do
|
||||
get :tag_statistics
|
||||
end
|
||||
|
Reference in New Issue
Block a user