Sha256: bce791c83f07c76ae4d12c1582132232b218455355ad7526d8c79a559e5185cc

Contents?: true

Size: 952 Bytes

Versions: 6

Compression:

Stored size: 952 Bytes

Contents

<% if can?(:edit, generic_file) %>
  <%= link_to( 'Edit', edit_polymorphic_path([:curation_concern, generic_file]),
    { class: 'btn btn-default', title: "Edit #{generic_file}" }) %>
  <%= link_to( 'Rollback', versions_curation_concern_generic_file_path(generic_file),
    { class: 'btn btn-default', title: "Rollback to previous version" }) %>
<% end %>
<% if can?(:destroy, generic_file) %>
  <%= link_to( 'Delete', polymorphic_path([:curation_concern, generic_file]),
    class: 'btn btn-default', method: :delete, title: "Delete #{generic_file}",
    data: {confirm: "Deleting #{generic_file} from #{t('sufia.product_name')} is permanent. Click OK to delete this from #{t('sufia.product_name')}, or Cancel to cancel this operation"}
  )%>
<% end %>
<% if can?(:read, generic_file) %>
  <%= link_to 'Download', download_path(generic_file),
    class: 'btn btn-default', title: "Download #{generic_file.to_s.inspect}", target: "_blank" %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 app/views/curation_concern/worthwhile/generic_files/_actions.html.erb
worthwhile-0.1.1 app/views/curation_concern/worthwhile/generic_files/_actions.html.erb
worthwhile-0.1.0 app/views/curation_concern/worthwhile/generic_files/_actions.html.erb
worthwhile-0.0.3 app/views/curation_concern/worthwhile/generic_files/_actions.html.erb
worthwhile-0.0.2 app/views/curation_concern/worthwhile/generic_files/_actions.html.erb
worthwhile-0.0.1 app/views/curation_concern/worthwhile/generic_files/_actions.html.erb