Skip to content

Commit

Permalink
(ui) Replace original image by large generated version
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent committed Nov 10, 2023
1 parent 342eec9 commit 931032b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/api/events/_event.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion app/views/api/machines/_machine.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/views/api/spaces/_space.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/views/api/trainings/_training.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 931032b

Please sign in to comment.