<% for content in @contents %> <% end %>
<%= sort :title, as: _('Title') %> <%= sort :filename, as: _('File name') %> <%= sort :created_at, as: _('Created at') %> <%= _('Actions') %>
<%= link_to_if_authorized content.title, hash_for_edit_scap_content_path(:id => content.id) %> <%= content.original_filename %> <%= date_time_relative_value(content.created_at.getlocal) %> <%= action_buttons( display_link_if_authorized(_("Download"), hash_for_scap_content_path(:id => content.id), :data => { :no_turbolink => true }), display_delete_if_authorized(hash_for_scap_content_path(:id => content.id), :data => {:confirm => _("Delete scap content %s?") % content.title}) ) %>
<%= will_paginate_with_info @contents %>