Sha256: 7da3d6c88918ad32435ee4b884e68a5ebd95b4195ebdf460c29cfbc38753dd5a
Contents?: true
Size: 1.22 KB
Versions: 6
Compression:
Stored size: 1.22 KB
Contents
<% if can?(:edit, file_set.id) %> <%= link_to( 'Edit', edit_polymorphic_path([main_app, file_set]), { class: 'btn btn-default', title: "Edit #{file_set}" }) %> <%= link_to( 'Rollback', main_app.versions_hyrax_file_set_path(file_set), { class: 'btn btn-default', title: "Rollback to previous version" }) %> <% end %> <% if can?(:destroy, file_set.id) %> <%= link_to( 'Delete', polymorphic_path([main_app, file_set]), class: 'btn btn-default', method: :delete, title: "Delete #{file_set}", data: {confirm: "Deleting #{file_set} from #{application_name} is permanent. Click OK to delete this from #{application_name}, or Cancel to cancel this operation"} )%> <% end %> <% if can?(:read, file_set.id) %> <div class="btn-group"> <button class="btn btn-default btn-small dropdown-toggle" data-toggle="dropdown" href="#"> Download <span class="caret"></span></button> <ul class="dropdown-menu"> <li> <%= link_to "File", hyrax.download_path(file_set), target: '_blank', data: { turbolinks: false } %> </li> <li> <%= link_to "Display Vector",hyrax.download_path(file_set, file: 'display_vector'), target: '_blank', data: { turbolinks: false } %> </li> </ul> </div> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems