uploads: allow changing thumbnail size on My Uploads / All Uploads pages.

* Add a "Size" menu to the My Uploads / All Uploads pages to allow
  changing the thumbnail size.
* Make the My Uploads / All Uploads pages use the same thumbnail size as
  the post index page.
* Change the "Gallery | Table" links on the My Uploads page to icons.
This commit is contained in:
evazion
2022-02-16 14:11:02 -06:00
parent f890e8595e
commit 0b8d042c06
19 changed files with 127 additions and 91 deletions

View File

@@ -1,6 +1,9 @@
<div id="c-media-assets">
<div id="a-index">
<h1>All Uploads</h1>
<div class="flex mb-4">
<h1 class="flex-grow-1">All Uploads</h1>
<%= render PreviewSizeMenuComponent.new(current_size: @preview_size) %>
</div>
<% if params[:search].present? %>
<%= search_form_for(media_assets_path) do |f| %>
@@ -17,7 +20,7 @@
<% if params[:mode] == "table" %>
<%= render "media_assets/table" %>
<% else %>
<%= render "media_assets/gallery" %>
<%= render "media_assets/gallery", media_assets: @media_assets, size: @preview_size %>
<% end %>
<%= numbered_paginator(@media_assets) %>