<commit_before>:ruby
  table_dom_id = SecureRandom.hex

%table.table.table-hover{:id => table_dom_id, :data => {:toggle => 'table',
  :card_view => "false",
  :pagination => 'true',
  :page_list => "[5, 10, 20, 50, 100, 200]",
  :page_size => current_user.num_table_rows,
  :show_pagination_switch => 'true',
  :search => 'false',
  :show_columns => 'true',
  :show_export => 'true',
  :show_toggle => 'true',
  :resizable => 'true',
  :search => 'false'}}
  %thead
    %tr
      %th.left Agency
      %th.left Type
      %th.left Asset Tag
      %th.left Description

      %th.right In Service
      %th.right Age
      %th.center Condition
      %th.center Status

      %th.sorting_disabled

  %tbody
    - assets.each do |a|
      %tr{:data => {:action_path => inventory_path(a)}}
        %td.left= a.organization
        %td.left= a.asset_subtype
        %td.left= a.asset_tag
        %td.left= a.description

        %td.right= format_as_date(a.in_service_date)
        %td.right= format_as_integer(a.age)
        %td.center= format_as_decimal(a.reported_condition_rating, 1)
        %td.center= a.service_status_type.code unless a.service_status_type.nil?

        %td.center= render :partial => 'assets/asset_info_detail_popup', :locals => {:asset => a}

:javascript

  $(window).resize(function() {
    $("##{table_dom_id}").bootstrapTable('resetView');
  });

  $('.popup-details').popover({
    trigger: 'hover',
    container: 'body',
    placement: 'left',
    animation: 'true',
    html: 'true'
  });<commit_msg>Fixup compact asset table<commit_after>:ruby
  table_dom_id = SecureRandom.hex

%table.table.table-hover{:id => table_dom_id, :data => {:toggle => 'table',
  :card_view => "false",
  :pagination => 'false',
  :show_columns => 'false',
  :show_export => 'false',
  :show_toggle => 'false',
  :resizable => 'dalse',
  :search => 'false'}}
  %thead
    %tr
      %th.left Agency
      %th.left Type
      %th.left Asset Tag
      %th.left Description

      %th.right In Service
      %th.right Age
      %th.center Condition
      %th.center Status

  %tbody
    - assets.each do |a|
      %tr{:id => a.object_key, :class => 'action-path'}
        %td.left= a.organization
        %td.left= a.asset_subtype
        %td.left= a.asset_tag
        %td.left= a.description

        %td.right= format_as_date(a.in_service_date)
        %td.right= format_as_integer(a.age)
        %td.center= format_as_decimal(a.reported_condition_rating, 1)
        %td.center= a.service_status_type.code unless a.service_status_type.nil?

:javascript

  var path = '#{inventory_path("0")}';

  $('##{table_dom_id}').on('click-row.bs.table', function (e, row, $element) {
    //alert($element.attr('id'));
    var url = path.replace("0", $element.attr('id'));
    //alert(url);
    document.location.href = url;
  });

  $(window).resize(function() {
    $("##{table_dom_id}").bootstrapTable('resetView');
  });
{'fraction_non_alphanumeric': 0.1721536351165981, 'fraction_numerical': 0.005829903978052126, 'mean_word_length': 3.0345781466113415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 34, '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': '6339893', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1025, 'n_words': 194}