Sha256: 615146f6a5b0835686407dc17cc0c293bbd35c2a88014ae0e87c8e56e355d3be

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 KB

Contents

<div class="btn-group my-actions">
  <a class="btn btn-primary dropdown-toggle user-display-name" data-toggle="dropdown" href="#">
    <%= current_user.user_key %>
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu">
    <% include_works_link ||= can_ever_create_works? %>
    <% include_collections_link ||= can?(:create, Collection) %>
    <% if include_works_link %>
      <li><%= link_to 'My Works', search_path_for_my_works, class: 'my-works', role: 'menuitem' %></li>
    <% end %>
    <% if include_collections_link %>
      <li><%= link_to 'My Collections', search_path_for_my_collections, class: 'my-collections', role: 'menuitem' %></li>
    <% end %>

    <% if can? :discover, Hydra::AccessControls::Embargo %>
      <li><%= link_to 'Embargos', main_app.embargoes_path, role: 'menuitem' %></li>
    <% end %>
    <% if can? :discover, Hydra::AccessControls::Lease %>
      <li><%= link_to 'Leases', main_app.leases_path, role: 'menuitem' %></li>
    <% end %>

    <% if include_works_link || include_collections_link %>
      <li class="divider"></li>
    <% end %>
    <li><%= link_to 'Log Out', main_app.destroy_user_session_path, class: 'log-out', role: 'menuitem' %></li>
  </ul>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
curation_concerns-0.12.0.pre1 app/views/shared/_my_actions.html.erb
curation_concerns-0.11.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.11.0.rc1 app/views/shared/_my_actions.html.erb
curation_concerns-0.10.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.9.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.8.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.7.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.6.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.5.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.4.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.3.0 app/views/shared/_my_actions.html.erb
curation_concerns-0.2.0 app/views/shared/_my_actions.html.erb