Sha256: 95f41cfeec9e71df672a0ec570a0493aed0d2cf44d9a75eb9c59a8a6a0a720a5

Contents?: true

Size: 758 Bytes

Versions: 5

Compression:

Stored size: 758 Bytes

Contents

.page-header
  = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, :class => 'btn primary'
  %h1 Listing <%= plural_table_name %>

%table.zebra-striped
  %thead
    %tr
<% for attribute in attributes -%>
      %th <%= attribute.human_name %>
<% end -%>
      %th
      %th
      %th

  %tbody
    - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
      %tr
<% for attribute in attributes -%>
        %td= <%= singular_table_name %>.<%= attribute.name %>
<% end -%>
        %td= link_to 'Show', <%= singular_table_name %>
        %td= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
        %td= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap-generators-1.4.0 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-1.0.1 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-1.0.0 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-0.0.6 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-0.0.5 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml