Sha256: c71442033fc657b3299dda11885d485560e7a24c8903836845adca2068b0b644

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

Contents

<div class="navbar-right">

  <ul class="nav navbar-nav">
    <%= render_nav_actions do |config, action|%>
      <li><%= action %></li>
    <% end %>
  </ul>

  <ul class="nav navbar-nav">
    <% if current_user %>
      <li class="dropdown">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%=current_user%> <b class="caret"></b></a>
        <ul class="dropdown-menu">
          <li><%= link_to "Change Password", main_app.edit_user_registration_path %></li>
          <% if current_exhibit and can? :curate, current_exhibit %>
            <li><%= link_to t('spotlight.dashboards.show.header'), spotlight.exhibit_dashboard_path(current_exhibit) %></li>
          <% end %>
          <% if can? :create, Spotlight::Exhibit %>
          <li class="divider"></li>
          <li><%= link_to t(:'helpers.action.spotlight/exhibit.create'), spotlight.new_exhibit_path %></li>
          <% end %>
          <li class="divider"></li>
          <li><%= link_to t('spotlight.header_links.logout'), main_app.destroy_user_session_path %></li>
        </ul>
      </li>
    <% else %>
      <li><%= link_to t('spotlight.header_links.login'), main_app.new_user_session_path %></li>
    <% end %>
    <% if current_exhibit and show_contact_form? %>
    <li><%= link_to t('spotlight.header_links.contact'), spotlight.new_exhibit_contact_form_path(current_exhibit), data: {behavior: 'contact-link', target: 'report-problem-form' } %></li>
    <% end %>
  </ul>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-spotlight-0.3.1 app/views/_user_util_links.html.erb
blacklight-spotlight-0.3.0 app/views/_user_util_links.html.erb
blacklight-spotlight-0.2.0 app/views/_user_util_links.html.erb