Sha256: df4ace829f3fd5fa3388e6fdfc837c441a5df74b8b2cb3d928f233ccd4b14205

Contents?: true

Size: 1.49 KB

Versions: 3

Compression:

Stored size: 1.49 KB

Contents

.listings-table-content
  - unless listing.items.empty?
    %table.table.table-hover{'class' => listing.table_css_class}
      %thead
        - if listing.selectable?
          %th.batch-selection-header
            %input#batch-selection{:type => "checkbox"}

        - listing.columns.each do |col|
          %th{'class' => "#{'sortable ' + (col.sort || '') if col.sortable?}" }
            - if col.sortable?
              = link_to col.human_name, listing.url_for_sort(col.key, col.next_sort_direction), remote: true
            - else
              = col.human_name

      %tbody
        - listing.items.each do |item|
          %tr{class: listing.row_style_for(item)}
            - if listing.selectable?
              %td
                %input.checkbox-selection{:name => "selected", :type => "checkbox", :value => item.id}
            - listing.columns.each do |col|
              %td{class: col.cell_css_class}
                = col.value_for(item)

    %ul.nav.clearfix
      - if listing.paginated?
        %li.pull-left
          = paginate listing.items, :remote => true, :theme => listing.kaminari_theme, :params => listing.params, :remote => true
      - unless listing.export_formats.empty?
        %li.pull-right
          %ul.inline.list-inline
            %li
              = listing.export_message
            - listing.export_formats.each do |format|
              %li
                = link_to format, listing.url_for_format(format), download: true


  - else
    .well
      = listing.no_data_message

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
listings-0.1.7 app/views/listings/_table_content.html.haml
listings-0.1.6 app/views/listings/_table_content.html.haml
listings-0.1.5 app/views/listings/_table_content.html.haml