Sha256: 5a5a69e351b204d53c21f46e18f4af9c9ff9b8c7f92d1bbf04b73e92ca87a739
Contents?: true
Size: 728 Bytes
Versions: 5
Compression:
Stored size: 728 Bytes
Contents
- @attributes ||= collection.first.attribute_names - ['id', 'created_at', 'updated_at'] %table.list{: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 - @attributes = @attributes - ['name', 'client_id', 'project_state_id'] %tbody - collection.each do |r| %tr %td= link_to r.name, r, {'data-href-container' => 'tr'} - @attributes.each do |field| %td= r.send(field) if r.respond_to?(field) %td= r.client %td= r.project_state %td.action-links = list_link_for(:edit, r) = list_link_for(:delete, r)
Version data entries
5 entries across 5 versions & 1 rubygems