Show More
Commit Description:
Merge pull request #23 from nattee/master...
Commit Description:
Merge pull request #23 from nattee/master
some bug fix
References:
File last commit:
Show/Diff file:
Action:
app/views/application/_submission.html.haml
| 26 lines
| 914 B
| text/x-haml
| HamlLexer
|
| r596 | ||||
| %tr | ||||
| %td{:align => "center"} | ||||
| r644 | = submission.number | |||
| %td.text-right | ||||
| r596 | = link_to "##{submission.id}", submission_path(submission.id) | |||
| %td | ||||
| = l submission.submitted_at, format: :long | ||||
| = "( #{time_ago_in_words(submission.submitted_at)} ago)" | ||||
| %td | ||||
| = submission.source_filename | ||||
| = " (#{submission.language.pretty_name}) " | ||||
| = link_to('[load]',{:action => 'source', :id => submission.id}) | ||||
| %td | ||||
| - if submission.graded_at | ||||
| = "Graded at #{format_short_time(submission.graded_at)}." | ||||
| %br/ | ||||
| = "Score: #{(submission.points*100/submission.problem.full_score).to_i} " if GraderConfiguration['ui.show_score'] | ||||
| = " [" | ||||
| %tt | ||||
| = submission.grader_comment | ||||
| = "]" | ||||
| %td | ||||
| = render :partial => 'compiler_message', :locals => {:compiler_message => submission.compiler_message } | ||||
| %td | ||||
| r597 | = link_to 'Edit', edit_submission_path(submission.id), class: 'btn btn-success' | |||
