You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/hack_user_lastest_codes/show.json.jbuilder

19 lines
464 B

json.hack do
json.(@hack, :name, :difficult, :time_limit, :description, :score, :identifier)
json.language @hack.language
json.username @hack.user.real_name
json.code @my_hack.code
5 years ago
json.pass_count @hack.pass_num
json.submit_count @hack.submit_num
json.modify_code @modify
end
json.test_case do
json.input @hack.input_test_case
end
json.user do
json.partial! 'users/user', user: current_user
5 years ago
json.hack_manager @hack.manager?(current_user)
5 years ago
end