Sha256: 9ea6134862f2c7b843bd6f04c7c957822161defc7f365aa0aee148c3d0ba110c
Contents?: true
Size: 1.99 KB
Versions: 37
Compression:
Stored size: 1.99 KB
Contents
<% ul_id = 'admin-set-action-dropdown-ul-' + document.id %> <div class="btn-group"> <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= document.id %>" aria-haspopup="true" aria-expanded="false" aria-controls="<%= ul_id %>"> <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" id="<%= ul_id %>" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= document.id %>"> <% if can? :edit, 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> <% end %> <li role="menuitem" tabindex="-1"> <%= display_trophy_link(current_user, document.id) do |text| %> <i class="glyphicon glyphicon-star" aria-hidden="true"></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 class="glyphicon glyphicon-transfer" aria-hidden="true"></i> <span> <%= t("hyrax.dashboard.my.action.transfer") %> </span> <% end %> </li> <% end %> </ul> </div>
Version data entries
37 entries across 37 versions & 1 rubygems