Sha256: 495dec2409b1e5e8317dd78e45aa86f221d57b43acbb28412766c0e41e8ff295

Contents?: true

Size: 1.75 KB

Versions: 10

Compression:

Stored size: 1.75 KB

Contents

<div class="btn-group">

  <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= document.id %>" aria-haspopup="true">
    <span class="sr-only"><%= t("hyrax.dashboard.my.sr.press_to") %> </span>
    <%= t("hyrax.dashboard.my.action.select") %>
    <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">
      <%= link_to [main_app, :edit, document] do %>
        <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
        <span> <%= t("hyrax.dashboard.my.action.edit_work") %> </span>
      <% end %>
    </li>

    <li role="menuitem" tabindex="-1">
      <%= link_to [main_app, document],
                  method: :delete,
                  data: {
                    confirm: t("hyrax.dashboard.my.action.work_confirmation", application_name: application_name) } do %>
        <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
        <span> <%= t("hyrax.dashboard.my.action.delete_work") %> </span>
      <% end %>
    </li>

    <li role="menuitem" tabindex="-1">
      <%= display_trophy_link(current_user, document.id) do |text| %>
        <i class='glyphicon glyphicon-star'></i> <%= text %>
      <% end %>
    </li>

    <% if can? :transfer, document.id %>
      <li role="menuitem" tabindex="-1">
        <%= link_to(hyrax.new_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: t("hyrax.dashboard.my.action.transfer")) do %>
          <i aria-hidden="true" class='glyphicon glyphicon-transfer'></i>
          <span> <%= t("hyrax.dashboard.my.action.transfer") %> </span>
        <% end %>
      </li>
    <% end %>
  </ul>
</div>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.1.0 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.0.5 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.0.4 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.0.3 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.0.2 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.0.1 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/my/_work_action_menu.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/my/_work_action_menu.html.erb
test_hyrax-0.0.1.alpha app/views/hyrax/my/_work_action_menu.html.erb