1
0
Fork 0
forked from gitea/nas

Add admin attachments panel

This commit is contained in:
KMY 2023-02-28 09:16:47 +09:00
parent 15683f583d
commit bd839a8abc
8 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# frozen_string_literal: true
module Admin
class MediaAttachmentsController < BaseController
def index
authorize :account, :index?
@media_attachments = filtered_attachments.page(params[:page])
@form = Form::MediaAttachmentsBatch.new
end
private
def filtered_attachments
MediaAttachment.recently_attachments
end
end
end