commit
						1792b8dc89
					
				| @ -1,6 +1,6 @@ | ||||
| json.id attachment.id | ||||
| json.title attachment.title | ||||
| json.filesize number_to_human_size(attachment.filesize) | ||||
| json.url download_url(attachment) | ||||
| json.created_on attachment.created_on | ||||
| json.is_pdf attachment.is_pdf? | ||||
| json.url attachment.is_pdf? ? download_url(attachment,disposition:"inline") : download_url(attachment) | ||||
| json.created_on attachment.created_on | ||||
|  | ||||
| @ -1,9 +1,3 @@ | ||||
| 
 | ||||
| # json.partial! 'attachments/attachment_small', attachment: @file | ||||
| json.id @file.id | ||||
| json.title @file.title | ||||
| json.filesize number_to_human_size(@file.filesize) | ||||
| json.url download_url(@file).gsub("/api","") | ||||
| json.created_on @file.created_on | ||||
| json.is_pdf @file.is_pdf? | ||||
| json.partial! 'attachments/attachment_small', attachment: @file | ||||
| json.partial! "attachment_histories/list", attachment_histories: @attachment_histories | ||||
|  | ||||
					Loading…
					
					
				
		Reference in new issue