Sha256: 1adb23b7caccda3afd833bf2de992b48f5a26fc56ec48ed2e3e2c0e458e1d509

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 Bytes

Contents

%h1= t('.title')
%p= link_to t('.new_<%= singular_name %>'), new_<%= singular_name %>_path

%table
  %thead
    %tr
<% for attribute in attributes -%>
      %th= <%= class_name %>.human_attribute_name :<%= attribute.name %>
<% end -%>
      %th{:colspan => 3}= t 'actions'
  
  %tbody
    - for <%= singular_name %> in @<%= plural_name %>
      %tr{ :class => cycle(:odd, :even) }
<% for attribute in attributes -%>
        %td= <%= singular_name %>.<%= attribute.name %>
<% end -%>
        %td.action= link_to t('show'), <%= singular_name %>
        %td.action= link_to t('edit'), edit_<%= singular_name %>_path(<%= singular_name %>)
        %td.action= link_to t('destroy'), <%= singular_name %>, :confirm => t('are_you_sure'), :method => :delete

Version data entries

3 entries across 2 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/lib/generators/haml/scaffold/templates/index.html.haml
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/haml_rails-0.1.0/lib/generators/haml_rails/templates/scaffold/templates/index.html.haml
haml_rails-0.1.0 lib/generators/haml_rails/templates/scaffold/templates/index.html.haml