Sha256: ad942d62640f7024ce87ff160384ca2f5341d9b553b5f198e60e0a1da2044056

Contents?: true

Size: 662 Bytes

Versions: 14

Compression:

Stored size: 662 Bytes

Contents

%table.table.table-striped
  %thead
    %tr
      - attributes.each do |attr|
        %th= sortable attr, resource_class.human_attribute_name(attr)
  %tbody
    - collection.each do |resource|
      %tr
        - attributes.each do |attr|
          %td
            = resource.public_send(attr).to_s.truncate(20)
        %td
          .btn-group
            = link_to t(:show), resource_path(resource), :class=>"btn btn-action"
            = link_to t(:edit), edit_resource_path(resource),:class=>"btn btn-warning"
            = link_to( t(:delete), resource_path(resource),:method => :delete, :confirm =>"This action is irreversible!",:class=>"btn btn-danger" )

Version data entries

14 entries across 5 versions & 1 rubygems

Version Path
vision-0.0.2 test/dummy/app/views/vision/posts/_index.html.haml
vision-0.0.2 lib/generators/templates/resource/_index.html.haml
vision-0.0.2 app/views/vision/resource/_index.html.haml
vision-0.0.1 app/views/vision/resource/_index.html.haml
vision-0.0.1 lib/generators/templates/resource/_index.html.haml
vision-0.0.1 test/dummy/app/views/vision/posts/_index.html.haml
vision-0.0.1.beta2 lib/generators/templates/resource/_index.html.haml
vision-0.0.1.beta2 test/dummy/app/views/vision/posts/_index.html.haml
vision-0.0.1.beta2 app/views/vision/resource/_index.html.haml
vision-0.0.1.beta lib/generators/templates/resource/_index.html.haml
vision-0.0.1.beta test/dummy/app/views/vision/posts/_index.html.haml
vision-0.0.1.beta app/views/vision/resource/_index.html.haml
vision-0.0.1.alpha1 lib/generators/templates/resource/_index.html.haml
vision-0.0.1.alpha1 app/views/vision/resource/_index.html.haml