# HG changeset patch # User Nattee Niparnan # Date 2019-10-08 11:46:05 # Node ID b90509d73a817c1e0c502fe3c06b03f693540670 # Parent c6677423b8466d1d7f089177f466dc342d652241 fix report link diff --git a/app/views/report/problem_hof.html.haml b/app/views/report/problem_hof.html.haml --- a/app/views/report/problem_hof.html.haml +++ b/app/views/report/problem_hof.html.haml @@ -12,8 +12,8 @@ .form-inline = select 'report', 'problem_id', - @problems.collect {|p| ["[#{p.name}] #{p.full_name}", report_problem_hof_url(p.id)]}, - {:selected => report_problem_hof_url(@problem)}, + @problems.collect {|p| ["[#{p.name}] #{p.full_name}", problem_hof_report_path(p.id)]}, + {:selected => problem_hof_report_path(@problem)}, { class: 'select2 form-control' } %button.btn.btn-primary.btn-sm.go-button#problem_go{data: {source: "#report_problem_id"}} Go diff --git a/config/routes.rb b/config/routes.rb --- a/config/routes.rb +++ b/config/routes.rb @@ -138,6 +138,12 @@ get 'current_score(/:group_id)', action: 'current_score', as: 'current_score' get 'max_score' post 'show_max_score' + get 'problem_hof(/:id)', action: 'problem_hof', as: 'problem_hof' + get 'stuck' + get 'cheat_report' + post 'cheat_report' + get 'cheat_scruntinize' + post 'cheat_scruntinize' end #get 'report/current_score', to: 'report#current_score', as: 'report_current_score' #get 'report/problem_hof(/:id)', to: 'report#problem_hof', as: 'report_problem_hof'