* Make thumbnails on the "My Uploads" page show an icon with an image count when an upload contains multiple files. * Make the "My Uploads" page show each upload, not each individual file. If an upload contains multiple files, they're shown grouped together under a single upload. This does mean that failed or duplicate uploads will show up on this page now. This is because this page shows each upload attempt, not each uniquely uploaded file.
19 lines
462 B
Plaintext
19 lines
462 B
Plaintext
<div class="flex items-center mb-2">
|
|
<h1 class="flex-1">My Uploads</h1>
|
|
|
|
<span>
|
|
<strong>Gallery</strong> |
|
|
<%= link_to "Table", uploads_path(mode: "table") %>
|
|
</span>
|
|
</div>
|
|
|
|
<%= render(MediaAssetGalleryComponent.new) do |gallery| %>
|
|
<% @uploads.each do |upload| %>
|
|
<% gallery.media_asset do %>
|
|
<%= render "uploads/preview", upload: upload, size: gallery.size %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= numbered_paginator(@uploads) %>
|