<commit_before>%table.table.table-striped.table-hover
  %thead
    %tr.borderless
      %td{colspan: 9}
        .text-right
          = link_to t(".assign_price_policies"),
            assign_price_policies_path,
            method: :post,
            class: %w(btn btn-primary)
    %tr
      %th= Order.model_name.human
      %th= OrderDetail.model_name.human
      %th= problem_order_date_header(local_assigns[:show_reservation_start_at])
      %th= Order.human_attribute_name(:user)
      %th{ colspan: 2 }= t(".th.quantity_and_product")
      %th
      %th= Account.model_name.human
      %th= t(".th.problem")
  %tbody
    - @order_details.each do |order_detail|
      %tr{ class: row_class(order_detail) }
        - if order_detail.missing_form? && order_detail.order.merge_with_order_id
          %td.centered= link_to order_detail.order.merge_with_order_id,
            facility_order_path(current_facility, order_detail.order.merge_order)
          %td.centered= order_detail.id
        - else
          %td.centered= link_to order_detail.order_id,
            facility_order_path(current_facility, order_detail.order)
          %td.centered= link_to order_detail.id,
            manage_order_detail_path(order_detail),
            class: "manage-order-detail"
        %td= problem_order_date(order_detail, local_assigns[:show_reservation_start_at])
        %td= order_detail.order.user
        %td.centered= order_detail.quantity
        %td= OrderDetailPresenter.new(order_detail).description_as_html
        %td
          - if order_detail.add_accessories?
            = link_to new_facility_order_order_detail_accessory_path(current_facility, order_detail.order, order_detail), class: ["has_accessories", "persistent", "undecorated"] do
              = tooltip_icon "fa fa-plus-square", t("product_accessories.pick_accessories.title")

        %td= order_detail.account
        %td.centered
          = order_detail_badges(order_detail)
          = link_to text("shared.update"), manage_order_detail_path(order_detail), class: "manage-order-detail"

= will_paginate(@order_details)
= render partial: "shared/reconcile_footnote"<commit_msg>[#159074] Update link for merge orders should point to the order page (#2907)<commit_after>%table.table.table-striped.table-hover
  %thead
    %tr.borderless
      %td{colspan: 9}
        .text-right
          = link_to t(".assign_price_policies"),
            assign_price_policies_path,
            method: :post,
            class: %w(btn btn-primary)
    %tr
      %th= Order.model_name.human
      %th= OrderDetail.model_name.human
      %th= problem_order_date_header(local_assigns[:show_reservation_start_at])
      %th= Order.human_attribute_name(:user)
      %th{ colspan: 2 }= t(".th.quantity_and_product")
      %th
      %th= Account.model_name.human
      %th= t(".th.problem")
  %tbody
    - @order_details.each do |order_detail|
      %tr{ class: row_class(order_detail) }
        - if order_detail.missing_form? && order_detail.order.merge_with_order_id
          %td.centered= link_to order_detail.order.merge_with_order_id,
            facility_order_path(current_facility, order_detail.order.merge_order)
          %td.centered= order_detail.id
        - else
          %td.centered= link_to order_detail.order_id,
            facility_order_path(current_facility, order_detail.order)
          %td.centered= link_to order_detail.id,
            manage_order_detail_path(order_detail),
            class: "manage-order-detail"
        %td= problem_order_date(order_detail, local_assigns[:show_reservation_start_at])
        %td= order_detail.order.user
        %td.centered= order_detail.quantity
        %td= OrderDetailPresenter.new(order_detail).description_as_html
        %td
          - if order_detail.add_accessories?
            = link_to new_facility_order_order_detail_accessory_path(current_facility, order_detail.order, order_detail), class: ["has_accessories", "persistent", "undecorated"] do
              = tooltip_icon "fa fa-plus-square", t("product_accessories.pick_accessories.title")

        %td= order_detail.account
        %td.centered
          = order_detail_badges(order_detail)
          - if order_detail.missing_form? && order_detail.order.merge_with_order_id
            = link_to text("shared.update"), facility_order_path(current_facility, order_detail.order.merge_order)
          - else
            = link_to text("shared.update"), manage_order_detail_path(order_detail), class: "manage-order-detail"

= will_paginate(@order_details)
= render partial: "shared/reconcile_footnote"
{'fraction_non_alphanumeric': 0.10379415612734409, 'fraction_numerical': 0.0030527692978630614, 'mean_word_length': 3.1361587015329127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2552516', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1445, 'n_words': 217}