Sha256: 692ef55788739bde3bb7b6d6b76fb70dd0aa55c3ac055bbc26517caaf99cd6c3

Contents?: true

Size: 914 Bytes

Versions: 6

Compression:

Stored size: 914 Bytes

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) %>
  <%= link_to 'Download', hyrax.download_path(file_set),
    class: 'btn btn-default', title: "Download #{file_set.to_s.inspect}", target: "_blank", data: { turbolinks: false } %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 app/views/geo_works/file_sets/actions/_metadata_actions.html.erb
geo_works-0.1.4 app/views/geo_works/file_sets/actions/_metadata_actions.html.erb
geo_works-0.1.3 app/views/geo_works/file_sets/actions/_metadata_actions.html.erb
geo_works-0.1.2 app/views/geo_works/file_sets/actions/_metadata_actions.html.erb
geo_works-0.1.1 app/views/geo_works/file_sets/actions/_metadata_actions.html.erb
geo_works-0.1.0 app/views/geo_works/file_sets/actions/_metadata_actions.html.erb