Sha256: 2d0d20e0f8557208eabb35b7aba81056b4b747fe001f77af65838f0c4715ccd9

Contents?: true

Size: 553 Bytes

Versions: 18

Compression:

Stored size: 553 Bytes

Contents

- @attributes ||= collection.first.attribute_names - ['id', 'created_at', 'updated_at']
%table.table.table-striped{:class => "#{collection.first.class.to_s.downcase.pluralize} collection"}
  %thead
    %tr
      - @attributes.each do |field|
        %th= t_attr field, collection.first.class
      %th.action-links
  %tbody
    - collection.each do |r|
      %tr
        - @attributes.each do |field|
          %td= r.send(field) if r.respond_to?(field)
        %td.action-links
          = list_link_for(:edit, r)
          = list_link_for(:delete, r)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
has_accounts_engine-3.0.0.beta15 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta14 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta13 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta12 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta11 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta10 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta9 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta8 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta7 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta6 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta5 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta4 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta3 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta2 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta1 app/views/has_accounts/_list.html.haml
has_accounts_engine-3.0.0.beta0 app/views/has_accounts/_list.html.haml
has_accounts_engine-2.0.1 app/views/has_accounts/_list.html.haml
has_accounts_engine-2.0.0 app/views/has_accounts/_list.html.haml