Sha256: ae2b3b86615590483d262330f0dec5184fe9eaba00919ad730ac638417e859a9

Contents?: true

Size: 911 Bytes

Versions: 3

Compression:

Stored size: 911 Bytes

Contents

- title "<%= plural_name.titleize %>"

.well
  %table.table.table-striped
    %thead
      %tr
      <%- model_attributes.each do |attribute| -%>
        %th <%= attribute.human_name.titleize %>
      <%- end -%>
        %th
    %tbody
      - @<%= instances_name %>.each do |<%= instance_name %>|
        %tr
        <%- model_attributes.each do |attribute| -%>
          %td= <%= instance_name %>.<%= attribute.name %>
        <%- end -%>

          %td
            = link_to "Show", <%= item_path %>, :class => 'btn btn-mini btn-primary'
            = link_to "Edit", <%= item_path :action => :edit %>, :class => 'btn btn-mini'
            = link_to "Destroy", <%= item_path %>, :confirm => 'Are you sure?', :method => :delete, :class => 'btn btn-mini btn-danger'

<%- if action? :new -%>
%p= link_to "New <%= singular_name.titleize %>", <%= item_path :action => :new %>, :class => 'btn primary'
<%- end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bootstrapped-2.0.4 lib/generators/bootstrapped/scaffold/templates/views/haml/index.html.haml
bootstrapped-2.0.3 lib/generators/bootstrapped/scaffold/templates/views/haml/index.html.haml
bootstrapped-1.0.1 lib/generators/bootstrapped/scaffold/templates/views/haml/index.html.haml