diff --git a/app/views/users/profile.html.haml b/app/views/users/stat.html.haml
copy from app/views/users/profile.html.haml
copy to app/views/users/stat.html.haml
--- a/app/views/users/profile.html.haml
+++ b/app/views/users/stat.html.haml
@@ -52,13 +52,13 @@
- @submission.each do |s|
- next unless s.problem
%tr
- %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id
- %td= link_to s.problem.name, controller: "problems", action: "stat", id: s.problem
+ %td= link_to s.id, submission_path(s)
+ %td= link_to s.problem.name, stat_problem_path(s.problem)
%td= s.problem.full_name
%td= s.language.pretty_name
%td #{s.submitted_at.strftime('%Y-%m-%d %H:%M')} (#{time_ago_in_words(s.submitted_at)} ago)
%td.fix-width= s.grader_comment
- %td= (s.points*100)/s.problem.full_score
+ %td= ( s.try(:points) ? (s.points*100/s.problem.full_score) : '' )
- if session[:admin]
%td= s.ip_address