lib/generators/happy_seed/bootstrap/templates/lib/templates/haml/scaffold/index.html.haml in happy_seed-0.0.8 vs lib/generators/happy_seed/bootstrap/templates/lib/templates/haml/scaffold/index.html.haml in happy_seed-0.0.9

- old
+ new

@@ -1,26 +1,27 @@ -.page-header - = link_to new_<%= singular_table_name %>_path, :class => 'btn btn-primary' do - %span.glyphicon.glyphicon-plus - New <%= human_name %> - %h1 Listing <%= plural_table_name %> +.container + .page-header + = link_to new_<%= singular_table_name %>_path, :class => 'btn btn-primary' do + %span.glyphicon.glyphicon-plus + New <%= human_name %> + %h1 Listing <%= plural_table_name %> -.table-responsive - %table.table.table-striped.table-bordered.table-hover - %thead - %tr + .table-responsive + %table.table.table-striped.table-bordered.table-hover + %thead + %tr <% for attribute in attributes -%> - %th <%= attribute.human_name %> + %th <%= attribute.human_name %> <% end -%> - %th - %th - %th + %th + %th + %th - %tbody - - @<%= plural_table_name %>.each do |<%= singular_table_name %>| - %tr + %tbody + - @<%= plural_table_name %>.each do |<%= singular_table_name %>| + %tr <% for attribute in attributes -%> - %td= <%= singular_table_name %>.<%= attribute.name %> + %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 %>, :data => { confirm: 'Are you sure?' }, :method => :delete + %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 %>, :data => { confirm: 'Are you sure?' }, :method => :delete