mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
json.id attachment.id
|
||||
json.title attachment.title
|
||||
json.is_public attachment.publiced?
|
||||
json.is_publish attachment.published?
|
||||
json.publish_time attachment.publish_time
|
||||
json.quotes attachment.quotes_count
|
||||
json.downloads_count attachment.downloads_count
|
||||
json.created_on attachment.created_on
|
||||
# json.url attachment_path(attachment, type: 'history').gsub("/api","")
|
||||
json.is_pdf attachment.is_history_pdf?
|
||||
json.url attachment.is_history_pdf? ? attachment_path(attachment, type: 'history',disposition:"inline") : attachment_path(attachment, type: 'history')
|
||||
json.attachment_id attachment.attachment_id
|
||||
json.content_type attachment.content_type
|
||||
3
app/views/attachment_histories/_list.json.jbuilder
Normal file
3
app/views/attachment_histories/_list.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.attachment_histories do
|
||||
json.array! attachment_histories, partial: 'attachment_histories/attachment_history', as: :attachment
|
||||
end
|
||||
Reference in New Issue
Block a user