Show More
Commit Description:
add authorization for show max score
Commit Description:
add authorization for show max score
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission.html.haml | 26 lines | 963 B | text/x-haml | HamlLexer |
%tr
%td{:align => "center"}
= submission_counter+1
%td{:align => "center"}
= link_to "##{submission.id}", controller: :graders, action: :submission, id: 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
= link_to 'Edit', direct_edit_submission_path(submission.id), class: 'btn btn-success'