Sha256: 26d3f3ffd03cadfe15f599e59c352137504e5917536dd62a35cd4a6769538ba9

Contents?: true

Size: 1.39 KB

Versions: 8

Compression:

Stored size: 1.39 KB

Contents

%table
  %thead
    %tr
      - model.columns(:display).each do |column|
        %th= sort_link_to(model, column)
      %th Actions
  %tbody
    - records.each do |record|
      %tr{:class=>cycle('odd', 'even')}
        - model.columns(:display).each do |column|
          %td= sanitize(model.display_for(record, column.name).to_s)
        %td
          - unless model.disabled?(:edit)
            - if parent
              = link_to 'Edit', :controller => 'admin/kitsune/records', :action => :edit, :model_id => model.object_class, :id => record.id, (parent.class.to_s.underscore+'_id').to_sym => parent.id
            - else
              = link_to 'Edit', :controller => 'admin/kitsune/records', :action => :edit, :model_id => model.object_class, :id => record.id
          - unless model.disabled?(:edit) || model.disabled?(:delete)
            \- 
          - unless model.disabled?(:delete)
            - if parent
              = link_to('Delete', url_for(:controller => 'admin/kitsune/records', :model_id => model.object_class, :id => record.id, :action => :destroy, :redirect => (parent.class.to_s.underscore+'_id'), :redirect_id => parent.id), :method => :delete, :confirm => "Are you sure?")
            - else
              = link_to('Delete', url_for(:controller => 'admin/kitsune/records', :model_id => model.object_class, :id => record.id, :action => :destroy), :method => :delete, :confirm => "Are you sure?")

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kitsune-0.1.3 app/views/admin/kitsune/records/_list.html.haml
kitsune-0.1.2 app/views/admin/kitsune/records/_list.html.haml
kitsune-0.1.1 app/views/admin/kitsune/records/_list.html.haml
kitsune-0.1.0 app/views/admin/kitsune/records/_list.html.haml
kitsune-0.0.19 app/views/admin/kitsune/records/_list.html.haml
kitsune-0.0.18 app/views/admin/kitsune/records/_list.html.haml
kitsune-0.0.17 app/views/admin/kitsune/records/_list.html.haml
kitsune-0.0.16 app/views/admin/kitsune/records/_list.html.haml