mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
(bug) event image update not shown
This commit is contained in:
parent
93473a8b6f
commit
1205cb925c
@ -4,6 +4,7 @@
|
||||
- Export external ID and private notes in the members excel export
|
||||
- Ability to buy a new prepaid pack from the user's dashboard
|
||||
- Improved public calendar loading time
|
||||
- Fix a bug: event image updates are not reflected unless the browser's cache is purged
|
||||
- Fix a bug: schedules jobs are not launched at the right time
|
||||
- [TODO DEPLOY] `rails fablab:fix_availabilities` THEN `rails fablab:setup:build_places_cache`
|
||||
- [TODO DEPLOY] `\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/rename-supporting-document.sh | bash`
|
||||
|
@ -5,7 +5,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
|
||||
json.attachment_url "#{event.event_image.attachment_url}?#{event.event_image.updated_at.to_i}"
|
||||
end
|
||||
end
|
||||
json.event_files_attributes event.event_files do |f|
|
||||
|
@ -4,7 +4,7 @@ total = @events.except(:offset, :limit, :order).count
|
||||
|
||||
json.array!(@events) do |event|
|
||||
json.partial! 'api/events/event', event: event
|
||||
json.event_image_small event.event_image.attachment.small.url if event.event_image
|
||||
json.event_image_small "#{event.event_image.attachment.small.url}?#{event.event_image.updated_at.to_i}" if event.event_image
|
||||
|
||||
json.nb_total_events total
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user