Sha256: 5d82397758ffddfb0fb0f3476ca2b8e930b9eb5134622a322c23a57c96f18576
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 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 - ['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.action-links = list_link_for(:edit, r) = list_link_for(:delete, r)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bookyt_projects-0.2.0 | app/views/projects/_list.html.haml |
bookyt_projects-0.1.0 | app/views/projects/_list.html.haml |