mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +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
|
- Export external ID and private notes in the members excel export
|
||||||
- Ability to buy a new prepaid pack from the user's dashboard
|
- Ability to buy a new prepaid pack from the user's dashboard
|
||||||
- Improved public calendar loading time
|
- 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
|
- 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] `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`
|
- [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.event_image_attributes do
|
||||||
json.id event.event_image.id
|
json.id event.event_image.id
|
||||||
json.attachment_name event.event_image.attachment_identifier
|
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
|
||||||
end
|
end
|
||||||
json.event_files_attributes event.event_files do |f|
|
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.array!(@events) do |event|
|
||||||
json.partial! 'api/events/event', event: 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
|
json.nb_total_events total
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user