<% return unless policy(post).view_scan_metadata? %>
<div class="flex flex-row gap-4 w-full mt-2">
  <div class="grow text-sm text-slate-500">
    <i class="fa-solid fa-magnifying-glass mr-1"></i>
    <% if (scanned_hle = post.scanned_post_log_entry_for_view) %>
      <%= link_to "Scanned #{time_ago_in_words(scanned_hle.requested_at)} ago",
                  log_entry_path(scanned_hle),
                  class: "text-blue-600 hover:underline",
                  target: "_blank",
                  title: scanned_hle.requested_at.strftime("%Y-%m-%d %H:%M:%S") %>
    <% else %>
      Unknown when post scanned
    <% end %>
  </div>
  <div class="grow text-sm text-slate-500">
    <i class="fa-solid fa-download mr-1"></i>
    <% if hle = post.primary_file_for_view&.log_entry %>
      <%= link_to "File downloaded #{time_ago_in_words(hle.requested_at)} ago",
                  log_entry_path(hle),
                  class: "text-blue-600 hover:underline",
                  target: "_blank",
                  title: hle.requested_at.strftime("%Y-%m-%d %H:%M:%S") %>
    <% else %>
      Unknown when file downloaded
    <% end %>
  </div>
</div>
