Show More
Commit Description:
merge
Commit Description:
merge
References:
File last commit:
Show/Diff file:
Action:
app/views/users/profile.html.haml | 50 lines | 1.1 KiB | text/x-haml | HamlLexer |
- content_for :header do
= javascript_include_tag 'new'
%script{:type=>"text/javascript"}
$(function () {
$('#submission_table').tablesorter({widgets: ['zebra','filter']});
});
:css
.fix-width {
font-family: Droid Sans Mono,Consolas, monospace, mono, Courier New, Courier;
}
%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
- if session[:admin]
%th IP
%tbody
- @submission.each do |s|
- next unless s.problem
%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
%td.fix-width= s.grader_comment
%td= (s.points*100)/s.problem.full_score
- if session[:admin]
%td= s.ip_address