1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-17 11:54:22 +01:00

(ui) Replace original image by large generated version

This commit is contained in:
Vincent 2023-11-10 15:59:21 +01:00
parent 342eec9881
commit 931032b086
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ if event.event_image
json.event_image_attributes do
json.id event.event_image.id
json.attachment_name event.event_image.attachment_identifier
json.attachment_url "#{event.event_image.attachment_url}?#{event.event_image.updated_at.to_i}"
json.attachment_url "#{event.event_image.attachment.large.url}?#{event.event_image.updated_at.to_i}"
end
end
json.event_files_attributes event.event_files do |f|

View File

@ -6,7 +6,7 @@ if machine.machine_image
json.machine_image_attributes do
json.id machine.machine_image.id
json.attachment_name machine.machine_image.attachment_identifier
json.attachment_url machine.machine_image.attachment.url
json.attachment_url machine.machine_image.attachment.large.url
end
end

View File

@ -5,7 +5,7 @@ if space.space_image
json.space_image_attributes do
json.id space.space_image.id
json.attachment_name space.space_image.attachment_identifier
json.attachment_url space.space_image.attachment.url
json.attachment_url space.space_image.attachment.large.url
end
end

View File

@ -7,7 +7,7 @@ if training.training_image
json.training_image_attributes do
json.id training.training_image.id
json.attachment_name training.training_image.attachment_identifier
json.attachment_url training.training_image.attachment.url
json.attachment_url training.training_image.attachment.large.url
end
end