Sha256: 36da78fe219f80d1df3f1103133f38b532a0be4c08879e5a9b21058c1b312682

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 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("sufia.dashboard.my.sr.press_to") %> </span>
    <%= t("sufia.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 [:edit, document] do %>
        <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
        <span> <%= t("sufia.dashboard.my.action.edit_work") %> </span>
      <% end %>
    </li>

    <li role="menuitem" tabindex="-1">
      <%= link_to document,
                  method: :delete,
                  data: { 
                    confirm: t("sufia.dashboard.my.action.work_confirmation", application_name: application_name) } do %>
        <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
        <span> <%= t("sufia.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>
    <li role="menuitem" tabindex="-1">
      <%= link_to(sufia.new_generic_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: t("sufia.dashboard.my.action.transfer")) do %>
        <i aria-hidden="true" class='glyphicon glyphicon-transfer'></i>
        <span> <%= t("sufia.dashboard.my.action.transfer") %> </span>
      <% end %>
    </li>
  </ul>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-7.0.0.beta3 app/views/my/_work_action_menu.html.erb