app/views/batch_contexts/index.html.erb
<div class="container">
<h1 class="h2">Projects History</h1>
<%= paginate @batch_contexts %>
<table class="table">
<thead>
<tr class="text-nowrap">
<th scope="col">Name</th>
<th scope="col">Creator</th>
<th scope="col">Content Type</th>
<th scope="col">Staging Location</th>
<th scope="col">Processing Configuration</th>
<th scope="col">Using File Manifest</th>
<th scope="col"># Job Runs</th>
<th scope="col">Created At</th>
</tr>
</thead>
<tbody>
<% @batch_contexts.each do |batch_context| %>
<tr>
<td class="break-all"><%= link_to batch_context.project_name, batch_context %></td>
<td><%= batch_context.user.email %></td>
<td><%= batch_context.content_structure %></td>
<td class="break-all">
<%= batch_context.staging_location %>
<% if batch_context.active_globus_url %>
<br><%= link_to 'globus link', batch_context.active_globus_url %>
<% end %>
</td>
<td><%= batch_context.processing_configuration %></td>
<td><%= batch_context.using_file_manifest ? 'yes' : 'no' %></td>
<td><%= batch_context.job_runs.count %></td>
<td><%= batch_context.created_at.in_time_zone('Pacific Time (US & Canada)').to_fs(:long) %></td>
</tr>
<% end %>
</tbody>
</table>
<%= paginate @batch_contexts %>
</div>