<commit_before>.row.basket_index_start
  .col-md-9.baskets
    .row
      .col-md-10
        %h2= t(:baskets)
        = paginate @baskets
      .col-md-2
        = link_to  t(:new) + ' ' + t(:basket) , new_basket_path , :class => "btn btn-primary"
  .col-md-3
    = image_tag "office_clerk/baskets.jpg" , :class => "img-responsive"
.row
  .col-md-9
    %div
      %table.table.table-striped.table-bordered.table-condensed
        %thead
          %tr
            %th= sort_link [:office,@q], :created_at
            %th= sort_link [:office,@q], :total_price
            %th= t(:items)
            %th
              %label.checkbox
                = @basket_scope.length.to_s + " " + t("baskets")
        %tbody
          - @baskets.each do |basket|
            - cache(basket) do
              %tr{:class => "line-#{cycle("1","2")}"}
                %td
                  = date(basket.created_at.to_date)
                %td
                  = euros basket.total_price
                %td
                  - basket.items.each do |item| #should break at 5 and do the rest as tooltip
                    = item.quantity
                    x
                    = item.name
                    %br
                %td= basket_edit_link(basket)
    = paginate @baskets
  .col-md-3
    = search_form_for @q , :html => { :class => "form-horizontal" }, :method => :get do |f|
      .form-group.row
        .col-md-3
          = f.label(:type)
        .col-md-9
          = f.select :kori_type_eq, [["",""] , [t(:order) , "Order"] , [t(:purchase),"Purchase"]] , {},  :class => "form-control"
      .form-group
        = f.text_field :items_name_cont , :class => "form-control" , :placeholder => t(:product) + " " +t(:name_contains)
      .form-group.row
        .col-md-4
          = f.label(:total_price)
        .col-md-4
          = f.text_field :total_price_gt , :class => "form-control"
        .col-md-4
          = f.text_field :total_price_lt , :class => "form-control"
      .form-group
        .col-md-3
          = f.label(:created_at)
        .col-sm-1.radio
        .form-group.col-md-6
          = f.search_field :created_at_gteq , :class => "form-control datepicker" , :value => sort_date(:created_at_gteq)
        .form-group.col-md-4
          = f.search_field :created_at_lteq , :class => "form-control datepicker" , :value => sort_date(:created_at_lteq)
      = f.submit t(:filter), :class => "btn btn-success"
      = link_to  t(:cancel), baskets_path, :class => "btn btn-warning"
.basket_index_end
<commit_msg>remove basket caching as invalidating was not right<commit_after>.row.basket_index_start
  .col-md-9.baskets
    .row
      .col-md-10
        %h2= t(:baskets)
        = paginate @baskets
      .col-md-2
        = link_to  t(:new) + ' ' + t(:basket) , new_basket_path , :class => "btn btn-primary"
  .col-md-3
    = image_tag "office_clerk/baskets.jpg" , :class => "img-responsive"
.row
  .col-md-9
    %div
      %table.table.table-striped.table-bordered.table-condensed
        %thead
          %tr
            %th= sort_link [:office,@q], :created_at
            %th= sort_link [:office,@q], :total_price
            %th= t(:items)
            %th
              %label.checkbox
                = @basket_scope.length.to_s + " " + t("baskets")
        %tbody
          - @baskets.each do |basket|
            %tr{:class => "line-#{cycle("1","2")}"}
              %td
                = date(basket.created_at.to_date)
              %td
                = euros basket.total_price
              %td
                - basket.items.each do |item| #should break at 5 and do the rest as tooltip
                  = item.quantity
                  x
                  = item.name
                  %br
              %td= basket_edit_link(basket)
    = paginate @baskets
  .col-md-3
    = search_form_for @q , :html => { :class => "form-horizontal" }, :method => :get do |f|
      .form-group.row
        .col-md-3
          = f.label(:type)
        .col-md-9
          = f.select :kori_type_eq, [["",""] , [t(:order) , "Order"] , [t(:purchase),"Purchase"]] , {},  :class => "form-control"
      .form-group
        = f.text_field :items_name_cont , :class => "form-control" , :placeholder => t(:product) + " " +t(:name_contains)
      .form-group.row
        .col-md-4
          = f.label(:total_price)
        .col-md-4
          = f.text_field :total_price_gt , :class => "form-control"
        .col-md-4
          = f.text_field :total_price_lt , :class => "form-control"
      .form-group
        .col-md-3
          = f.label(:created_at)
        .col-sm-1.radio
        .form-group.col-md-6
          = f.search_field :created_at_gteq , :class => "form-control datepicker" , :value => sort_date(:created_at_gteq)
        .form-group.col-md-4
          = f.search_field :created_at_lteq , :class => "form-control datepicker" , :value => sort_date(:created_at_lteq)
      = f.submit t(:filter), :class => "btn btn-success"
      = link_to  t(:cancel), baskets_path, :class => "btn btn-warning"
.basket_index_end

{'fraction_non_alphanumeric': 0.1542584871947588, 'fraction_numerical': 0.007941234862021045, 'mean_word_length': 1.7261904761904763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '1862228', 'n_tokens_mistral': 1787, 'n_tokens_neox': 1751, 'n_words': 305}