Sha256: 38fea1d065dabdd5393b7087599a18837390d5ae128b689e20ea0cb44553daf8

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

#results
  %table.table
    %tr
      %th.first
    <%- for attribute in attributes -%>
      %th= sort_link @search, :<%= attribute.name %>, t("activerecord.attributes.<%= singular_name %>.<%= attribute.name %>", :default => t("activerecord.labels.<%= attribute.name %>", :default => "<%= attribute.human_name %>"))
    <%- end -%>
      %th
        .right #{pluralize(@search.count, "<%= singular_name.humanize %>")} found
    - <%= plural_name %>.each do |<%= singular_name %>|
      %tr{ :class => cycle("odd", "even") }
        %td
      <%- for attribute in attributes -%>
        %td= <%= singular_name %>.<%= attribute.name %>
      <%- end -%>
        %td.last
          = link_to t("core.show"), resource_path(<%= singular_name %>)
          |
          = link_to t("core.edit"), edit_resource_path(<%= singular_name %>)
          |
          = link_to t("core.delete"), resource_path(<%= singular_name %>), :method => :delete, :confirm => t("core.confirm")
      
  .actions-bar.wat-cf
    .actions
      = will_paginate <%= plural_name %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
core-generators-0.0.2 lib/generators/core/scaffold/templates/views/haml/_collection.html.haml
core-generators-0.0.1 lib/generators/core/scaffold/templates/views/haml/_collection.html.haml