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/student_works/supply_attachments.json.jbu...

8 lines
455 B

json.revise_reason @last_atta.try(:description)
json.atta_update_time @last_atta.try(:created_on)
json.atta_update_user @is_evaluation ? "匿名" : @last_atta.try(:author).try(:real_name)
json.atta_update_user_login @is_evaluation ? "--" : @last_atta.try(:author).try(:login)
json.revise_attachments @revise_attachments.each do |atta|
json.partial! "attachments/attachment_simple", locals: {attachment: atta, delete: @work.delete_atta(atta)}
end