Fix the "My Uploads" page showing Admins all uploads, not just their own uploads. Changes the URL of the My Uploads page from /uploads to /users/:id/uploads.
19 lines
493 B
Plaintext
19 lines
493 B
Plaintext
<div class="flex items-center mb-2">
|
|
<h1 class="flex-1">My Uploads</h1>
|
|
|
|
<span>
|
|
<strong>Gallery</strong> |
|
|
<%= link_to "Table", user_uploads_path(CurrentUser.user.id.to_i, 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) %>
|