38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Subject</th>
|
|
<th>Metadata</th>
|
|
<th colspan="3"></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class="text-sm">
|
|
<% emails.each do |email| %>
|
|
<%= render partial: "list_row", object: email, as: :email %>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
|
|
<div class="flex-1 flex justify-between sm:hidden">
|
|
<%= link_to_previous_page @emails, 'Previous page', class: "ml-3 paginate-page paginate-page-single" %>
|
|
<%= link_to_next_page @emails, 'Next Page', class: "paginate-page paginate-page-single" %>
|
|
</div>
|
|
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
|
<div>
|
|
<p class="text-sm text-gray-700">
|
|
Showing
|
|
<span class="font-medium"><%= @emails.offset_value + 1 %></span>
|
|
to
|
|
<span class="font-medium"><%= @emails.offset_value + (@emails.respond_to?(:records) ? @emails.records : @emails.to_a).size %></span>
|
|
of
|
|
<span class="font-medium"><%= @emails.total_count %></span>
|
|
results
|
|
</p>
|
|
</div>
|
|
<%= paginate @emails %>
|
|
</div>
|
|
</div>
|