<% content_for(:toolbar) do %>
<% if can? :create, Alchemy::Attachment %>
<%= render 'alchemy/admin/uploader/button', redirect_url: alchemy.admin_attachments_path, object: Alchemy::Attachment.new, file_attribute: 'file' %>
<% end %>
<%= render 'alchemy/admin/partials/search_form' %> <% end %>
<%= render 'alchemy/admin/resources/table_header' %> <%= render 'files_list' %>
<%= render 'filter_bar' if resource_has_filters %> <% if Alchemy::Attachment.tag_counts.any? %>
<%= render 'tag_list' %>
<% end %>