Sha256: 742f10a38520047de3cddc0f9e4cf6ce90bb2669c6e3a3c837113c567fa723f4
Contents?: true
Size: 1.57 KB
Versions: 3
Compression:
Stored size: 1.57 KB
Contents
<div class="btn-group"> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= file_set.id %>" aria-haspopup="true"> <span class="sr-only">Press to </span> Select an action <span class="caret" aria-hidden="true"></span> </button> <ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= file_set.id %>"> <% if can?(:edit, file_set.id) %> <li role="menuitem" tabindex="-1"> <%= link_to 'Edit', edit_polymorphic_path([main_app, file_set]), { title: "Edit #{file_set}" } %> </li> <li role="menuitem" tabindex="-1"> <%= link_to 'Versions', edit_polymorphic_path([main_app, file_set], anchor: 'versioning_display'), { title: "Display previous versions" } %> </li> <% end %> <% if can?(:destroy, file_set.id) %> <li role="menuitem" tabindex="-1"> <%= link_to 'Delete', polymorphic_path([main_app, file_set]), 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"} %> </li> <% end %> <% if can?(:download, file_set.id) %> <li role="menuitem" tabindex="-1"> <%= link_to 'Download', hyrax.download_path(file_set), title: "Download #{file_set.to_s.inspect}", target: "_blank", id: "file_download", data: { label: file_set.id } %> </li> <% end %> </ul> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hyrax-2.1.0.rc2 | app/views/hyrax/file_sets/_actions.html.erb |
hyrax-2.1.0.rc1 | app/views/hyrax/file_sets/_actions.html.erb |
hyrax-2.1.0.beta2 | app/views/hyrax/file_sets/_actions.html.erb |