Sha256: 4c2d251fc3a44cdc3e3d384c2f172cd01a2ceddbedd5233f2e1790a8758f48d2

Contents?: true

Size: 459 Bytes

Versions: 9

Compression:

Stored size: 459 Bytes

Contents

<%= index_field_wrapper field: @field do %>
  <%
    if @parent_model.present?
      path = helpers.resource_path(@resource.model, via_resource_class: @parent_model.class, via_resource_id: @parent_model.id)
    else
      path = helpers.resource_path(@resource.model)
    end
  %>
  <% link_to_if (@field.link_to_resource or Avo.configuration.id_links_to_resource), @field.value, path, title: t('avo.view_item', { item: @resource.name}).humanize %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avo-1.0.0 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta15 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta14 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta13 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta12 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta11 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta10 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta9 app/components/avo/index/fields/id_field_component.html.erb
avo-0.5.0.beta8 app/components/avo/index/fields/id_field_component.html.erb