- content_for :header do = javascript_include_tag 'local_jquery' %script{:type=>"text/javascript"} $(function () { $('#submission_table').tablesorter({widgets: ['zebra']}); }); :css .fix-width { font-family: Droid Sans Mono,Consolas, monospace, mono, Courier New, Courier; } %h1= @user.full_name + ' Profile' %h2 Basic info Login: #{@user.login}
Full name: #{@user.full_name}
%h2 Problem Stat %h2 Submissions %table.tablesorter-cafe#submission_table %thead %tr %th ID %th Problem code %th Problem full name %th Language %th Submitted at %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 #{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 - if session[:admin] %td= s.ip_address