Sha256: ffcec39cf7a6391d26aa614945cf8ade89ef8c2b8e0a3e1f1ffeb72b5d4e962d

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

%table.main.documents.sortable{:data => {:sort => @sort, :order => @order, :url => "#{documents_path}.js"}}
  - if @documents.current_page > 1
    %thead
      %tr
        %td{:colspan => 6}
          = render :partial => 'pagination', :locals => {:with_info => false}
  %thead
    %tr
      - %w{name filename filesize created}.each do |col|
        %th
          - if @sort == col 
            - order = @order.downcase == 'desc' ? 'asc' : 'desc'
            - cssclass = "sorter #{@order.downcase}"
          - else
            - order = "asc"
            - cssclass = 'sorter'
          = link_to t(:"activerecord.attributes.droom.document.#{col}"), documents_path(:sort => col, :order => order, :format => :js), :class => cssclass, :remote => true


  - if @documents.any?
    = render :partial => 'table_document', :collection => @documents
    %tbody
      %tr
        %td{:colspan => 6}
          = render :partial => 'pagination', :locals => {:with_info => true}
  - else
    %tbody
      %tr
        %td{:colspan => 6}
          %p.nothing_to_see
            = t :no_documents
      

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/documents/_documents_table.html.haml
droom-0.4.2 app/views/droom/documents/_documents_table.html.haml
droom-0.4.1 app/views/droom/documents/_documents_table.html.haml
droom-0.2.1 app/views/droom/documents/_documents_table.html.haml