Sha256: 4442a4e9dddde7b23b021abcd68680c0958656fd85de1c048e38f366ed63610d

Contents?: true

Size: 587 Bytes

Versions: 15

Compression:

Stored size: 587 Bytes

Contents

<%% content_for :header do %>
  <%%= render(Koi::Header::IndexComponent.new(model: <%= class_name %>)) do |component| %>
    <%% component.with_action "New", <%= new_helper(type: :path) %> %>
  <%% end %>
<%% end %>

<%%= table_query_with(collection:) %>

<%%= table_with(collection:) do |row, <%= singular_name %>| %>
  <%- index_attributes.each_with_index do |attribute, index| -%>
  <%- if index.zero? -%>
  <%% row.link :<%= attribute.name %> %>
  <%- else -%>
  <%= index_attribute_for attribute %>
  <%- end -%>
  <%- end -%>
<%% end %>

<%%= table_pagination_with(collection:) %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
katalyst-koi-4.15.1 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.15.0 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.14.3 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.14.2 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.14.1 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.14.0 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.13.2 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.13.0 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.12.6 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.12.5 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.12.4 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.12.3 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.12.2 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.12.1 lib/generators/koi/admin_views/templates/index.html.erb.tt
katalyst-koi-4.12.0 lib/generators/koi/admin_views/templates/index.html.erb.tt