Sha256: ed3813120f77d47ea50225745196df6c056b8b137b000773788e8abb6fb5995e
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 Raster", hyrax.download_path(file_set, file: 'display_raster'), target: '_blank', data: { turbolinks: false } %> </li> </ul> </div> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems