Skip to content

Commit

Permalink
Implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
BWindey committed Jan 15, 2024
1 parent 922201d commit 165b54e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/views/submissions/_submission_basic.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ else
json.user user_url(submission.user.id, format: :json)
end
json.has_annotations submission.annotated?

if submission.course.nil?
json.exercise activity_url(submission.exercise, format: :json)
else
json.exercise course_activity_url(submission.course, submission.exercise, format: :json)
end

json.exercise activity_scoped_url(activity: submission.exercise, course: submission.course, options: { format: :json })
json.exercise_name submission.exercise.name


json.course course_url(submission.course, format: :json) if submission.course

0 comments on commit 165b54e

Please sign in to comment.