Files
danbooru/app/components/media_asset_gallery_component.rb
evazion 53a3beee35 uploads: refactor "My Uploads" page for multi-file uploads.
* 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.
2022-02-14 00:41:07 -06:00

17 lines
311 B
Ruby

# frozen_string_literal: true
class MediaAssetGalleryComponent < ApplicationComponent
DEFAULT_SIZE = 180
attr_reader :inline, :size, :options
renders_many :media_assets
renders_one :footer
def initialize(inline: false, size: DEFAULT_SIZE)
super
@inline = inline
@size = size
end
end