Show More
Commit Description:
merge bootstrap back to algo
Commit Description:
merge bootstrap back to algo
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission.html.haml
| 26 lines
| 963 B
| text/x-haml
| HamlLexer
|
|
r33 | |||
r565 | %tr | |||
%td{:align => "center"} | ||||
|
r51 | = submission_counter+1 | ||
r565 | %td{:align => "center"} | |||
r452 | = link_to "##{submission.id}", controller: :graders, action: :submission, id: submission.id | |||
r565 | %td | |||
r470 | = l submission.submitted_at, format: :long | |||
= "( #{time_ago_in_words(submission.submitted_at)} ago)" | ||||
r565 | %td | |||
r470 | = submission.source_filename | |||
= " (#{submission.language.pretty_name}) " | ||||
|
r74 | = link_to('[load]',{:action => 'source', :id => submission.id}) | ||
r565 | %td | |||
r578 | - if submission.graded_at | |||
|
r51 | = "Graded at #{format_short_time(submission.graded_at)}." | ||
%br/ | ||||
|
r320 | = "Score: #{(submission.points*100/submission.problem.full_score).to_i} " if GraderConfiguration['ui.show_score'] | ||
|
r73 | = " [" | ||
%tt | ||||
= submission.grader_comment | ||||
= "]" | ||||
r565 | %td | |||
|
r51 | = render :partial => 'compiler_message', :locals => {:compiler_message => submission.compiler_message } | ||
r565 | %td | |||
= link_to 'Edit', direct_edit_submission_path(submission.id), class: 'btn btn-success' | ||||