mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 07:15:55 +08:00
init project
This commit is contained in:
8
app/views/attachments/_attachment_simple.json.jbuilder
Normal file
8
app/views/attachments/_attachment_simple.json.jbuilder
Normal file
@@ -0,0 +1,8 @@
|
||||
json.id attachment.id
|
||||
json.title attachment.title
|
||||
json.filesize number_to_human_size attachment.filesize
|
||||
json.description attachment.description
|
||||
json.is_pdf attachment.is_pdf?
|
||||
json.url attachment.is_pdf? ? download_url(attachment,disposition:"inline") : download_url(attachment)
|
||||
# json.url download_url(attachment)
|
||||
json.set! :delete, delete.nil? ? true : delete if defined? delete
|
||||
Reference in New Issue
Block a user