Sha256: 6c5179abb040f03225fff8ecc68fa15a7359bc1870e1ab9d1d0fae81dea10a31
Contents?: true
Size: 1.35 KB
Versions: 5
Compression:
Stored size: 1.35 KB
Contents
<div class="btn-group"> <button class="btn btn-default btn-small dropdown-toggle" data-toggle="dropdown" href="#">Select an action <span class="caret"></span></button> <ul class="dropdown-menu"> <% if can? :edit, document %> <li> <%= link_to [:edit, :curation_concern, document], class: 'itemicon itemedit' do %><i class="glyphicon glyphicon-pencil"></i> Edit <%= document.human_readable_type %> <% end %> </li> <li> <% if @collection # We're on the view page for @collection. -%> <%= link_to_remove_from_collection(document) %> <% else %> <%= link_to [:curation_concern, document], class: 'itemicon itemtrash', title: 'Delete Collection', method: :delete, data: { confirm: "Deleting a collection from #{t('sufia.product_name')} is permanent. Click OK to delete this collection from #{t('sufia.product_name')}, or Cancel to cancel this operation" } do %> <i class="glyphicon glyphicon-trash"></i> Delete <%= document.human_readable_type %> <% end %> <% end %> </li> <% end %> <% if can? :collect, document %> <li> <%= link_to_select_collection document %> </li> <% end %> </ul> <%= render 'curate/collections/add_to_collection_modal', collectible: document if can? :collect, document %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems