Show More
Commit Description:
add more detail to hof
Commit Description:
add more detail to hof
References:
File last commit:
Show/Diff file:
Action:
app/views/users/profile.html.haml
| 46 lines
| 983 B
| text/x-haml
| HamlLexer
|
r431 | - content_for :header do | |||
= javascript_include_tag 'new' | ||||
%script{:type=>"text/javascript"} | ||||
$(function () { | ||||
$('#submission_table').tablesorter({widgets: ['zebra','filter']}); | ||||
}); | ||||
r434 | :css | |||
.fix-width { | ||||
font-family: Droid Sans Mono,Consolas, monospace, mono, Courier New, Courier; | ||||
} | ||||
r431 | %h1= @user.full_name + ' Profile' | |||
%h2 Basic info | ||||
<b>Login:</b> #{@user.login} <br/> | ||||
<b>Full name:</b> #{@user.full_name} <br /> | ||||
%h2 Problem Stat | ||||
%h2 Submissions | ||||
%table.tablesorter-cafe#submission_table | ||||
%thead | ||||
%tr | ||||
%th ID | ||||
%th Problem code | ||||
%th Problem name | ||||
%th Language | ||||
%th Result | ||||
%th Score | ||||
%tbody | ||||
- @submission.each do |s| | ||||
r434 | - next unless s.problem | |||
r431 | %tr | |||
%td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id | ||||
%td= s.problem.name | ||||
%td= s.problem.full_name | ||||
%td= s.language.pretty_name | ||||
r434 | %td.fix-width= s.grader_comment | |||
r431 | %td= s.points/s.problem.full_score * 100 | |||