# HG changeset patch # User Nattee Niparnan # Date 2016-09-05 06:53:11 # Node ID 9e1cc9dd0e9a5e1193e3cc4d8af2d57584cee724 # Parent 8bdb0ec71018e09d3a6e0711ffb2a8de13299228 fix link back to problems in problems path diff --git a/app/views/problems/do_import.html.haml b/app/views/problems/do_import.html.haml --- a/app/views/problems/do_import.html.haml +++ b/app/views/problems/do_import.html.haml @@ -10,7 +10,7 @@ = "Note that the full score has been set to #{@problem.full_score}." %p - = link_to '[Back to problem list]', :action => 'list' + = link_to '[Back to problem list]', problems_path = link_to '[Import other problems]', :action => 'import' %h3 Import log diff --git a/app/views/problems/import.html.haml b/app/views/problems/import.html.haml --- a/app/views/problems/import.html.haml +++ b/app/views/problems/import.html.haml @@ -3,7 +3,7 @@ %h1 Import problems -%p= link_to '[Back to problem list]', :action => 'list' +%p= link_to '[Back to problem list]', problems_path - if @problem and @problem.errors =error_messages_for 'problem'