forgeplus/app/views/attachments/_attachment_small.json.jbui...

8 lines
327 B
Plaintext
Raw Normal View History

2020-03-09 00:40:16 +08:00
json.id attachment.id
json.title attachment.title
json.filesize number_to_human_size(attachment.filesize)
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
json.content_type attachment.content_type