Show More
Commit Description:
allow ta to set model submission
Commit Description:
allow ta to set model submission
File last commit:
Show/Diff file:
Action:
app/views/report/submission_query.json.jbuilder | 20 lines | 752 B | text/plain | TextLexer |
json.draw params['draw']&.to_i
json.recordsTotal @recordsTotal
json.recordsFiltered @recordsFiltered
json.data do
json.array! @submissions do |sub|
json.extract! sub, :grader_comment, :ip_address
json.id "<a href='#{submission_path(sub)}'>#{sub.id}</a>"
json.submitted_at sub.submitted_at.strftime('%Y-%m-%d %H:%M')
json.points "#{sub.points}/#{sub.problem&.full_score}"
json.problem do
json.long_name sub.problem ? sub.problem.long_name : '-- deleted problem --'
end
json.user do
json.login sub.user ? "<a href='#{stat_user_path(sub.user)}'>(#{sub.user&.login})</a> #{sub.user&.full_name}" : '-- deleted user --'
end
json.language do
json.pretty_name sub.language&.pretty_name
end
end
end