Sha256: 6266c51b6dd0acfe3d24c09454edca7415708354cc188664b4ececf402f6ee14

Contents?: true

Size: 1.68 KB

Versions: 26

Compression:

Stored size: 1.68 KB

Contents

<div class="btn-group">

  <button class="btn btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= document.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_<%= document.id %>">

    <li role="menuitem" tabindex="-1">
      <%= button_for_remove_from_collection(@collection, document, label: 'Remove from Collection') %>
    </li>

    <li role="menuitem" tabindex="-1">
      <%= link_to [main_app, :edit, document] do %>
        <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
        <span> Edit Work </span>
      <% end %>
    </li>

    <li role="menuitem" tabindex="-1">
      <%= link_to [main_app, document], method: :delete, data: { confirm: "Deleting a work from #{application_name} is permanent. Click OK to delete this work from #{application_name}, or Cancel to cancel this operation" } do %>
        <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
        <span>Delete Work</span>
      <% end %>
    </li>

    <li role="menuitem" tabindex="-1">
      <%= display_trophy_link @user, document.id do |text| %>
        <i class="glyphicon glyphicon-star" aria-hidden="true"></i> <%= text %>
      <% end %>
    </li>
    <li role="menuitem" tabindex="-1">
      <%= link_to(hyrax.new_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: 'Transfer Ownership of Work') do %>
        <i aria-hidden="true" class="glyphicon glyphicon-transfer"></i>
        <span> Transfer Ownership of Work </span>
      <% end %>
    </li>
  </ul>
</div>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.9.5 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.9.4 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.9.3 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.9.2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.9.1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.9.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.8.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.7.2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.7.1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.7.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.6.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.5.1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.5.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-3.0.0.pre.beta2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.4.1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-3.0.0.pre.beta1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.4.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.3.3 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-2.3.2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb