<% if entry.respond_to?(:facility) && entry.facility.present? entry.facility[:values].each do |facility| start_time = facility[:locationPeriodLow].present? ? DateTime.strptime(facility[:locationPeriodLow], "%m/%d/%Y %I:%M %p").to_i : nil end_time = facility[:locationPeriodHigh].present? ? DateTime.strptime(facility[:locationPeriodHigh], "%m/%d/%Y %I:%M %p").to_i : nil -%> <% if facility[:code].present? -%> <% else -%> <% end -%> <% if facility[:display].present? -%> <%= facility[:display] %> <% end -%> <% end end -%>