Sha256: 14abf0c942ac77ebc4262f431ef0e384053fe7b4ca26838e665bdbf88140991c

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

%h1.heading
  = "<%= plural_name.humanize %>"
  
%p.actions
  = link_to 'New <%= singular_name.humanize %>', <%= new_link %>
  
%table
  %thead.header
    %tr
<% attributes.each do |attribute| -%>
      %th.<%= attribute.name %>= '<%= attribute.name.humanize %>'
<% end -%>
      %th.actions= 'Actions'
  %tbody.items.<%= plural_name %>
    - <%= collection_instance %>.each do |<%= singular_name %>|
      = render 'item', :<%= singular_name %> => <%= singular_name %>
      
<% if options[:pagination] -%>
= will_paginate(<%= collection_instance %>)
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grimen-dry_scaffold-0.2.2 generators/dry_scaffold/templates/views/haml/index.html.haml
grimen-dry_scaffold-0.2.3 generators/dry_scaffold/templates/views/haml/index.html.haml
grimen-dry_scaffold-0.2.4 generators/dry_scaffold/templates/views/haml/index.html.haml
grimen-dry_scaffold-0.2.5 generators/dry_scaffold/templates/views/haml/index.html.haml
grimen-dry_scaffold-0.2.6 generators/dry_scaffold/templates/views/haml/index.html.haml