Sha256: 8ca45d2a53d329ef7a8e908a631515dc1fc92f72aca96df4503b6e7d0ed0b329
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 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.new-task= t_title(:new, Activity) %th.action-links - @attributes = @attributes - ['client_id', 'project_state_id'] %tbody - collection.each do |r| %tr - @attributes.each do |field| %td= r.send(field) if r.respond_to?(field) %td= r.client %td= r.project_state %td= link_to t_title(:new, Activity), new_project_activity_url(r) %td.action-links = list_link_for(:show, r) = list_link_for(:edit, r) = list_link_for(:delete, r)
Version data entries
4 entries across 4 versions & 1 rubygems