Sha256: 1bf8081aa11c388c0f6bccf3b0ef516d7247d4d64dd847bec5cd909b0a2672f7

Contents?: true

Size: 1.67 KB

Versions: 15

Compression:

Stored size: 1.67 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"><%= t('.press_to') %> </span>
    <%= t('.select_an_action') %>
  </button>

  <ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= document.id %>">

    <li class="dropdown-item" role="menuitem" tabindex="-1">
      <%= button_for_remove_from_collection(@collection, document, label: t('.remove_from_collection')) %>
    </li>

    <li class="dropdown-item" role="menuitem" tabindex="-1">
      <%= link_to [main_app, :edit, document] do %>
        <i class="fa fa-pencil" aria-hidden="true"></i>
        <span> <%= t('.edit_work') %> </span>
      <% end %>
    </li>

    <li class="dropdown-item" role="menuitem" tabindex="-1">
      <%= link_to [main_app, document], method: :delete, data: { confirm: t(".deleting_from_work", application_name: application_name) } do %>
        <i class="fa fa-trash" aria-hidden="true"></i>
        <span><%= t('.delete_work') %></span>
      <% end %>
    </li>

    <li class="dropdown-item" role="menuitem" tabindex="-1">
      <%= display_trophy_link @user, document.id do |text| %>
        <i class="fa fa-star" aria-hidden="true"></i> <%= text %>
      <% end %>
    </li>

    <li class="dropdown-item" role="menuitem" tabindex="-1">
      <%= link_to(hyrax.new_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: t('.transfer_ownership_of_work')) do %>
        <i aria-hidden="true" class="fa fa-exchange"></i>
        <span> <%=t('.transfer_ownership_of_work') %> </span>
      <% end %>
    </li>
  </ul>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.4 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.3 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-4.0.0 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/dashboard/collections/_work_action_menu.html.erb