Sha256: c94b72782ceb1887e939c15fb195733088fcd3d9b5cbea12578003defa307ece

Contents?: true

Size: 815 Bytes

Versions: 9

Compression:

Stored size: 815 Bytes

Contents

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

%table.table.table-bordered.table-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

9 entries across 9 versions & 1 rubygems

Version Path
bootstrap-generators-2.3.1.2 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.3.1.1 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.3.1 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.2.2 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.2.1 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.1.1 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.0.4 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.0.1 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
bootstrap-generators-2.0.0 lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml