<commit_before>= content_for :h1 do
  =h current_facility

= content_for :tabnav do
  = render :partial => 'admin/shared/tabnav_order', :locals => { :secondary_tab => 'disputed'}

- if @details.empty?
  %p.notice There are no "Disputed" orders.
- else
  %p Please review the following disputes.
  %table
    %tr
      %th.small Order #
      %th.med Order On
      %th.med Ordered By
      %th.med Ordered For
      %th.med Product
      %th.med Disputed On
      %th.auto Dispute Reason
    - @details.each do |od|
      - o = od.order
      - product_name = order_detail_description(od)
      %tr
        %td= link_to od, edit_facility_order_order_detail_path(current_facility, o, od)
        %td=h human_datetime(o.ordered_at)
        %td=h User.find(o.created_by).full_name
        %td=h User.find(o.user_id).full_name
        %td= product_name
        %td=h human_datetime(od.dispute_at)
        %td=h od.dispute_reason
  = will_paginate(@details)<commit_msg>both problem orders and disputed should use @order_details<commit_after>= content_for :h1 do
  =h current_facility

= content_for :tabnav do
  = render :partial => 'admin/shared/tabnav_order', :locals => { :secondary_tab => 'disputed'}

- if @order_details.empty?
  %p.notice There are no "Disputed" orders.
- else
  %p Please review the following disputes.
  %table
    %tr
      %th.small Order #
      %th.med Order On
      %th.med Ordered By
      %th.med Ordered For
      %th.med Product
      %th.med Disputed On
      %th.auto Dispute Reason
    - @order_details.each do |od|
      - o = od.order
      - product_name = order_detail_description(od)
      %tr
        %td= link_to od, edit_facility_order_order_detail_path(current_facility, o, od)
        %td=h human_datetime(o.ordered_at)
        %td=h User.find(o.created_by).full_name
        %td=h User.find(o.user_id).full_name
        %td= product_name
        %td=h human_datetime(od.dispute_at)
        %td=h od.dispute_reason
  = will_paginate(@order_details)
{'fraction_non_alphanumeric': 0.10999497739829231, 'fraction_numerical': 0.0010045203415369162, 'mean_word_length': 2.7870722433460076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '814680', 'n_tokens_mistral': 706, 'n_tokens_neox': 693, 'n_words': 162}