<commit_before>%table{ :class => "index", :cellpadding => "0", :cellspacing => "0", :border => "0"}
  %thead
    %tr
      %th.asset Image
      %th.asset-title Title
      %th.content_type Type
      %th.modify{ :colspan =>"2"} Modify

  %tbody
    - unless @assets.empty?
      - for asset in @assets 
        %tr.node.level-1
          %td.asset
            - asset_id = "asset_#{asset.id.to_s}"
            = link_to image_tag(asset.thumbnail(:icon)), edit_asset_url(:id => asset), :class => 'icon'
          %td.asset-title
            = link_to asset.title, edit_asset_url(:id => asset.id) 
            &nbsp;
            %span.caption
              = asset.caption
          %td.content_type
            = asset.asset_content_type
          %td.add-to-bucket
            = link_to_remote(image_tag('assets/add-to-bucket.png', :alt => 'Add to Bucket'), :url => add_bucket_url(:id => asset))
          %td.remove
            = link_to image_tag('admin/remove.png', :alt => 'Remove Asset'), remove_asset_url(:id => asset)
    - else
      %tr
        %td.note{ :colspan => "4" } 
          No Assets
    
= will_paginate @assets

%script{ :type => "text/javascript"}
  // <! [CDATA[
  new RuledTable('assets')
  //]<commit_msg>fixing colspan on empty assets index screen<commit_after>%table{ :class => "index", :cellpadding => "0", :cellspacing => "0", :border => "0"}
  %thead
    %tr
      %th.asset Image
      %th.asset-title Title
      %th.content_type Type
      %th.modify{ :colspan =>"2"} Modify

  %tbody
    - unless @assets.empty?
      - for asset in @assets 
        %tr.node.level-1
          %td.asset
            - asset_id = "asset_#{asset.id.to_s}"
            = link_to image_tag(asset.thumbnail(:icon)), edit_asset_url(:id => asset), :class => 'icon'
          %td.asset-title
            = link_to asset.title, edit_asset_url(:id => asset.id) 
            &nbsp;
            %span.caption
              = asset.caption
          %td.content_type
            = asset.asset_content_type
          %td.add-to-bucket
            = link_to_remote(image_tag('assets/add-to-bucket.png', :alt => 'Add to Bucket'), :url => add_bucket_url(:id => asset))
          %td.remove
            = link_to image_tag('admin/remove.png', :alt => 'Remove Asset'), remove_asset_url(:id => asset)
    - else
      %tr
        %td.note{ :colspan => "5" } 
          No Assets
    
= will_paginate @assets

%script{ :type => "text/javascript"}
  // <! [CDATA[
  new RuledTable('assets')
  //]
{'fraction_non_alphanumeric': 0.15730337078651685, 'fraction_numerical': 0.004815409309791332, 'mean_word_length': 2.0588957055214725, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1545307', 'n_tokens_mistral': 838, 'n_tokens_neox': 820, 'n_words': 166}