From 931032b08624096902d530c966d36de49dddeebf Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 10 Nov 2023 15:59:21 +0100 Subject: [PATCH] (ui) Replace original image by large generated version --- app/views/api/events/_event.json.jbuilder | 2 +- app/views/api/machines/_machine.json.jbuilder | 2 +- app/views/api/spaces/_space.json.jbuilder | 2 +- app/views/api/trainings/_training.json.jbuilder | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/api/events/_event.json.jbuilder b/app/views/api/events/_event.json.jbuilder index 49a1488e6..c8d1b1436 100644 --- a/app/views/api/events/_event.json.jbuilder +++ b/app/views/api/events/_event.json.jbuilder @@ -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| diff --git a/app/views/api/machines/_machine.json.jbuilder b/app/views/api/machines/_machine.json.jbuilder index 75c9de678..6e2159ed8 100644 --- a/app/views/api/machines/_machine.json.jbuilder +++ b/app/views/api/machines/_machine.json.jbuilder @@ -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 diff --git a/app/views/api/spaces/_space.json.jbuilder b/app/views/api/spaces/_space.json.jbuilder index 82a1a8e9e..931d02d94 100644 --- a/app/views/api/spaces/_space.json.jbuilder +++ b/app/views/api/spaces/_space.json.jbuilder @@ -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 diff --git a/app/views/api/trainings/_training.json.jbuilder b/app/views/api/trainings/_training.json.jbuilder index eb4c8b598..e0c555022 100644 --- a/app/views/api/trainings/_training.json.jbuilder +++ b/app/views/api/trainings/_training.json.jbuilder @@ -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