diff --git a/app/views/users/profile.html.haml b/app/views/users/profile.html.haml
--- a/app/views/users/profile.html.haml
+++ b/app/views/users/profile.html.haml
@@ -31,6 +31,8 @@
%th Language
%th Result
%th Score
+ - if session[:admin]
+ %th IP
%tbody
- @submission.each do |s|
- next unless s.problem
@@ -40,7 +42,9 @@
%td= s.problem.full_name
%td= s.language.pretty_name
%td.fix-width= s.grader_comment
- %td= s.points/s.problem.full_score * 100
+ %td= (s.points*100)/s.problem.full_score
+ - if session[:admin]
+ %td= s.ip_address