app/views/alchemy/admin/attachments/_files_list.html.erb
<% if @attachments.empty? %>
<%= render_message do %>
<% if search_filter_params[:q].present? %>
<%= Alchemy.t(:no_search_results) %>
<% else %>
<%= Alchemy.t(:no_files_in_archive) %>
<% end %>
<% end %>
<% else %>
<table id="all_files" class="list">
<thead>
<tr>
<th class="icon"></th>
<th class="name"><%= sort_link(@query, :name) %></th>
<th class="file_name"><%= sort_link(@query, :file_name) %></th>
<th class="file_type"><%= Alchemy::Attachment.human_attribute_name('file_mime_type') %></th>
<th class="file_size"><%= sort_link(@query, :file_size) %></th>
<th class="date"><%= sort_link(@query, :created_at, default_order: 'desc') %></th>
<th class="tools"></th>
</tr>
</thead>
<tbody>
<%= render partial: 'alchemy/admin/attachments/attachment', collection: @attachments %>
</tbody>
</table>
<%= paginate @attachments, theme: 'alchemy' %>
<% end %>