<commit_before><% if user_signed_in? %>
  <p>
    <strong><%= t('activerecord.models.user') %>:</strong>
    <%= link_to @purchase_request.user.username, @purchase_request.user if @purchase_request.user %>
    <%= t('purchase_request.guest') unless @purchase_request.user %>
  </p>

  <% if SystemConfiguration.get("use_order_lists") %>
    <% if current_user.has_role?('Librarian') %>
      <p>
        <strong><%= t('activerecord.models.order_list') %>:</strong>
        <%= link_to @purchase_request.order_list.title, order_list_purchase_requests_path(@purchase_request.order_list) if @purchase_request.order_list %>
        <%= t('purchase_request.not_ordered') unless @purchase_request.order_list %>
      </p>
    <% end %>
  <% end %>
<% end %>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.state') %>:</strong>
  <%= i18n_pr_state(@purchase_request.state) %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.title') %>:</strong>
  <%= @purchase_request.title %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.author') %>:</strong>
  <%= @purchase_request.author %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.publisher') %>:</strong>
  <%= @purchase_request.publisher %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.isbn') %>:</strong>
  <%= @purchase_request.isbn %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.pub_date') %>:</strong>
  <%= @purchase_request.pub_date %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.price') %>:</strong>
  <%= @purchase_request.price %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.url') %>:</strong>
  <%= link_to @purchase_request.url, @purchase_request.url if @purchase_request.url? %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.note') %>:</strong>
  <%= @purchase_request.note %>
</p>

<p>
  <strong><%= t('activerecord.attributes.order_list.ordered_at') %>:</strong>
  <%= l(@purchase_request.order_list.ordered_at) if @purchase_request.order_list rescue nil %>
</p>

<p>
<strong><%= t('page.created_at') %>:</strong>
  <%= l(@purchase_request.created_at) %><commit_msg>refs4549 購入リクエストの発注時刻を隠す<commit_after><% if user_signed_in? %>
  <p>
    <strong><%= t('activerecord.models.user') %>:</strong>
    <%= link_to @purchase_request.user.username, @purchase_request.user if @purchase_request.user %>
    <%= t('purchase_request.guest') unless @purchase_request.user %>
  </p>

  <% if SystemConfiguration.get("use_order_lists") %>
    <% if current_user.has_role?('Librarian') %>
      <p>
        <strong><%= t('activerecord.models.order_list') %>:</strong>
        <%= link_to @purchase_request.order_list.title, order_list_purchase_requests_path(@purchase_request.order_list) if @purchase_request.order_list %>
        <%= t('purchase_request.not_ordered') unless @purchase_request.order_list %>
      </p>
    <% end %>
  <% end %>
<% end %>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.state') %>:</strong>
  <%= i18n_pr_state(@purchase_request.state) %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.title') %>:</strong>
  <%= @purchase_request.title %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.author') %>:</strong>
  <%= @purchase_request.author %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.publisher') %>:</strong>
  <%= @purchase_request.publisher %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.isbn') %>:</strong>
  <%= @purchase_request.isbn %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.pub_date') %>:</strong>
  <%= @purchase_request.pub_date %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.price') %>:</strong>
  <%= @purchase_request.price %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.url') %>:</strong>
  <%= link_to @purchase_request.url, @purchase_request.url if @purchase_request.url? %>
</p>

<p>
  <strong><%= t('activerecord.attributes.purchase_request.note') %>:</strong>
  <%= @purchase_request.note %>
</p>

<% if SystemConfiguration.get("use_order_lists") %>
  <p>
    <strong><%= t('activerecord.attributes.order_list.ordered_at') %>:</strong>
    <%= l(@purchase_request.order_list.ordered_at) if @purchase_request.order_list rescue nil %>
  </p>
<% end %>

<p>
<strong><%= t('page.created_at') %>:</strong>
  <%= l(@purchase_request.created_at) %>
{'fraction_non_alphanumeric': 0.21338355860846445, 'fraction_numerical': 0.0017726567693330379, 'mean_word_length': 5.183561643835616, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 175, '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': '2882439', 'n_tokens_mistral': 1840, 'n_tokens_neox': 1645, 'n_words': 222}