1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/api/availabilities/spaces.json.jbuilder
2022-07-18 17:18:01 +02:00

13 lines
301 B
Ruby

# frozen_string_literal: true
json.array!(@slots) do |slot|
json.partial! 'api/availabilities/slot', slot: slot, operator_role: @operator_role
json.is_completed slot.full?
json.borderColor space_slot_border_color(slot)
json.space do
json.id @space.id
json.name @space.name
end
end