Sha256: 42f394adef7b719c6fe0a346072977d694313c4afea6b6a19ddecd85ad2310f6

Contents?: true

Size: 786 Bytes

Versions: 107

Compression:

Stored size: 786 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_record: @parent_record, 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

107 entries across 107 versions & 1 rubygems

Version Path
avo-3.0.0.pre17 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre18 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre14 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre16 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre15 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre13 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre12 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre10 app/components/avo/index/resource_map_component.html.erb
avo-3.0.0.pre11 app/components/avo/index/resource_map_component.html.erb
avo-3.2.2 app/components/avo/index/resource_map_component.html.erb
avo-3.2.1 app/components/avo/index/resource_map_component.html.erb
avo-3.2.0 app/components/avo/index/resource_map_component.html.erb
avo-3.1.7 app/components/avo/index/resource_map_component.html.erb
avo-3.1.6 app/components/avo/index/resource_map_component.html.erb
avo-3.1.5 app/components/avo/index/resource_map_component.html.erb
avo-3.1.4 app/components/avo/index/resource_map_component.html.erb
avo-3.1.3 app/components/avo/index/resource_map_component.html.erb
avo-3.1.2 app/components/avo/index/resource_map_component.html.erb
avo-3.1.1 app/components/avo/index/resource_map_component.html.erb
avo-3.1.0 app/components/avo/index/resource_map_component.html.erb