Sha256: d2fbe5e9e08332bf921a06de2a6806e4c52219f3575409d989e88ece43a7c0c3

Contents?: true

Size: 1.25 KB

Versions: 41

Compression:

Stored size: 1.25 KB

Contents

<ul class="nav navbar-nav">
  <li class="dropdown my-actions">
    <a class="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>
  </li>
</ul>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
curation_concerns-1.6.3 app/views/shared/_my_actions.html.erb
curation_concerns-1.6.2 app/views/shared/_my_actions.html.erb
curation_concerns-1.6.1 app/views/shared/_my_actions.html.erb
curation_concerns-1.6.0 app/views/shared/_my_actions.html.erb
curation_concerns-1.5.0 app/views/shared/_my_actions.html.erb
curation_concerns-1.4.0 app/views/shared/_my_actions.html.erb
curation_concerns-1.3.3 app/views/shared/_my_actions.html.erb
curation_concerns-1.3.2 app/views/shared/_my_actions.html.erb
curation_concerns-1.3.1 app/views/shared/_my_actions.html.erb
curation_concerns-1.3.0 app/views/shared/_my_actions.html.erb
curation_concerns-1.2.0 app/views/shared/_my_actions.html.erb
curation_concerns-1.1.2 app/views/shared/_my_actions.html.erb
curation_concerns-1.1.1 app/views/shared/_my_actions.html.erb
curation_concerns-1.1.0 app/views/shared/_my_actions.html.erb
curation_concerns-1.0.0 app/views/shared/_my_actions.html.erb
curation_concerns-1.0.0.beta10 app/views/shared/_my_actions.html.erb
curation_concerns-1.0.0.beta9 app/views/shared/_my_actions.html.erb
curation_concerns-1.0.0.beta8 app/views/shared/_my_actions.html.erb
curation_concerns-1.0.0.beta7 app/views/shared/_my_actions.html.erb
curation_concerns-1.0.0.beta6 app/views/shared/_my_actions.html.erb