<% content_for :title do %>
  <% "OpenSplitTime: Import Jobs - #{@user.full_name}" %>
<% end %>

<%= turbo_stream_from @user %>

<header class="ost-header">
  <div class="container">
    <div class="ost-heading row">
      <div class="col">
        <div class="ost-title">
          <h1><strong><%= @user.full_name %></strong></h1>
          <ul class="breadcrumb">
            <li class="breadcrumb-item"><%= current_user&.admin? ? (link_to 'Users', users_path) : 'Users' %></li>
            <li class="breadcrumb-item"><%= link_to @user.full_name, user_path(@user) %></li>
            <li class="breadcrumb-item active">Import Jobs</li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</header>

<article class="ost-article container">
  <table class="table table-condensed table-striped">
    <thead>
    <tr>
      <th>Parent Type</th>
      <th>Parent ID</th>
      <th>Format</th>
      <th>File</th>
      <th>Row Count</th>
      <th>Elapsed Time</th>
      <th>Status</th>
    </tr>
    </thead>
    <tbody id="import_jobs">
    <%= render partial: "import_job", collection: @user.import_jobs %>
    </tbody>
  </table>
</article>

<% content_for :title do %>
  <% "OpenSplitTime: Import Jobs - #{@user.full_name}" %>
<% end %>

<%= turbo_stream_from @user %>

<header class="ost-header">
  <div class="container">
    <div class="ost-heading row">
      <div class="col">
        <div class="ost-title">
          <h1><strong><%= @user.full_name %></strong></h1>
          <ul class="breadcrumb">
            <li class="breadcrumb-item"><%= current_user&.admin? ? (link_to 'Users', users_path) : 'Users' %></li>
            <li class="breadcrumb-item"><%= link_to @user.full_name, user_path(@user) %></li>
            <li class="breadcrumb-item active">Import Jobs</li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</header>

<article class="ost-article container">
  <table class="table table-condensed table-striped">
    <thead>
    <tr>
      <th>Parent Type</th>
      <th>Parent ID</th>
      <th>Format</th>
      <th>File</th>
      <th>Row Count</th>
      <th>Elapsed Time</th>
      <th>Status</th>
    </tr>
    </thead>
    <tbody id="import_jobs">
    <%= render partial: "import_job", collection: @user.import_jobs.with_attached_file %>
    </tbody>
  </table>
</article>

Fix N+1 query in import jobs index
Fix N+1 query in import jobs index
