Show More
Commit Description:
merge
Commit Description:
merge
References:
File last commit:
Show/Diff file:
Action:
app/views/graders/submission.html.haml
| 67 lines
| 2.0 KiB
| text/x-haml
| HamlLexer
|
r420 | %style{type: "text/css"} | |||
= @css_style | ||||
r445 | :css | |||
.field { | ||||
font-weight: bold; | ||||
text-align: right; | ||||
padding: 3px; | ||||
} | ||||
r420 | ||||
|
r105 | %h1= "Submission: #{@submission.id}" | ||
r445 | ||||
%h2 Stat | ||||
|
r105 | |||
r445 | %table.info | |||
%thead | ||||
%tr.info-head | ||||
%th Field | ||||
%th Value | ||||
%tbody | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field User: | ||||
r459 | %td.value | |||
- if @submission.user | ||||
= link_to "(#{@submission.user.login})", controller: "users", action: "profile", id: @submission.user | ||||
= @submission.user.full_name | ||||
- else | ||||
= "(n/a)" | ||||
r445 | %tr{class: cycle('info-even','info-odd')} | |||
%td.field Problem: | ||||
%td.value | ||||
- if @submission.problem!=nil | ||||
r459 | = link_to "(#{@submission.problem.name})", controller: "problems", action: "stat", id: @submission.problem | |||
= @submission.problem.full_name | ||||
r445 | - else | |||
= "(n/a)" | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field Tries: | ||||
%td.value= @submission.number | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field Submitted: | ||||
%td.value #{time_ago_in_words(@submission.submitted_at)} ago (at #{@submission.submitted_at.to_formatted_s(:long)}) | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field Graded: | ||||
%td.value #{time_ago_in_words(@submission.graded_at)} ago (at #{@submission.graded_at.to_formatted_s(:long)}) | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field Points: | ||||
%td.value #{@submission.points}/#{@submission.problem.full_score} | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field Comment: | ||||
%td.value #{@submission.grader_comment} | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field Runtime (s): | ||||
%td.value #{@submission.max_runtime} | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field Memory (kb): | ||||
%td.value #{@submission.peak_memory} | ||||
r446 | - if session[:admin] | |||
%tr{class: cycle('info-even','info-odd')} | ||||
%td.field IP: | ||||
%td.value #{@submission.ip_address} | ||||
r445 | ||||
%h2 Source code | ||||
r420 | //%div.highlight{:style => "border: 1px solid black;"} | |||
=@formatted_code.html_safe | ||||
|
r105 | |||