Sha256: 51c91fee661f7d67e8cee6e267d34bc5b8deedde8fb97e20894acbb44b4b6f73

Contents?: true

Size: 784 Bytes

Versions: 42

Compression:

Stored size: 784 Bytes

Contents

<% if @resources.present? %>
  <div class="map-view-container grid <%= grid_layout_classes %>">
    <div class="map-component min-h-full <%= map_component_order_class %>">
      <%= js_map(resource_location_markers, **resource_mapkick_options) %>
    </div>
    <% if render_table? %>
      <div class="overflow-auto <%= table_component_order_class %>">
        <%= render(Avo::Index::ResourceTableComponent.new(resources: @resources, resource: @resource, reflection: @reflection, parent_model: @parent_model, parent_resource: @parent_resource, pagy: @pagy, query: @query)) %>
      </div>
    <% end %>
  </div>
<% else %>
  <div class="bg-white rounded shadow-panel">
    <%= helpers.empty_state by_association: params[:related_name].present?, view_type: :map %>
  </div>
<% end %>

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
avo-2.53.0 app/components/avo/index/resource_map_component.html.erb
avo-2.52.0 app/components/avo/index/resource_map_component.html.erb
avo-2.49.0 app/components/avo/index/resource_map_component.html.erb
avo-2.48.0 app/components/avo/index/resource_map_component.html.erb
avo-2.47.0 app/components/avo/index/resource_map_component.html.erb
avo-2.46.0 app/components/avo/index/resource_map_component.html.erb
avo-2.45.0 app/components/avo/index/resource_map_component.html.erb
avo-2.44.0 app/components/avo/index/resource_map_component.html.erb
avo-2.43.0 app/components/avo/index/resource_map_component.html.erb
avo-2.42.2 app/components/avo/index/resource_map_component.html.erb
avo-2.42.1 app/components/avo/index/resource_map_component.html.erb
avo-2.42.0 app/components/avo/index/resource_map_component.html.erb
avo-2.41.0 app/components/avo/index/resource_map_component.html.erb
avo-2.40.0 app/components/avo/index/resource_map_component.html.erb
avo-2.39.0 app/components/avo/index/resource_map_component.html.erb
avo-2.38.0 app/components/avo/index/resource_map_component.html.erb
avo-2.37.2 app/components/avo/index/resource_map_component.html.erb
avo-2.37.1 app/components/avo/index/resource_map_component.html.erb
avo-2.37.0 app/components/avo/index/resource_map_component.html.erb
avo-2.36.3 app/components/avo/index/resource_map_component.html.erb