# HG changeset patch # User jittat # Date 2008-10-12 10:44:20 # Node ID d8ad0032a923c2904bb5860977ed9c289cca17ee # Parent 92da3961808951038458f340908936a0c5a1d6dc fixed partial counter off by one git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@282 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/views/main/_problem.html.erb b/app/views/main/_problem.html.erb --- a/app/views/main/_problem.html.erb +++ b/app/views/main/_problem.html.erb @@ -7,12 +7,12 @@ <%= link_to '[desc]', problem.url, :popup => true if (problem.url!=nil) and (problem.url!='') %> - <%= @prob_submissions[problem_counter-1][:count] %> + <%= @prob_submissions[problem_counter][:count] %> <%= render :partial => 'submission_short', :locals => { - :submission => @prob_submissions[problem_counter-1][:submission], + :submission => @prob_submissions[problem_counter][:submission], :problem_name => problem.name }%>