Sha256: c88663b5d45bcc4ef02ab067ebc545d5b8945155cbf8002dae27c9f26a38903a

Contents?: true

Size: 1.36 KB

Versions: 12

Compression:

Stored size: 1.36 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 [collections, :edit, 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. -%>
          <%= button_for_remove_from_collection(document) %>
        <% else %>
          <%= link_to [collections, document], class: 'itemicon itemtrash', title: 'Delete Collection', method: :delete, data: {
                          confirm: "Deleting a collection from #{t('curation_concerns.product_name')} is permanent. Click OK to delete this collection from #{t('curation_concerns.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 'collections/add_to_collection_modal', collectible: document if can? :collect, document %>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
curation_concerns-0.12.0.pre1 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.11.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.11.0.rc1 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.10.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.9.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.8.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.7.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.6.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.5.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.4.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.3.0 app/views/catalog/_action_menu_partials/_collection.html.erb
curation_concerns-0.2.0 app/views/catalog/_action_menu_partials/_collection.html.erb