Sha256: 382ca45356531c30dbd587660eee325ff3dbc1c25aaf950d77704bab6378ff0b

Contents?: true

Size: 1.9 KB

Versions: 19

Compression:

Stored size: 1.9 KB

Contents

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

<ul class="navbar-nav">
  <%= render '/spotlight/shared/locale_picker' %>
  <% if current_user %>
    <li class="nav-item dropdown">
      <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown"><%=current_user%></a>
      <ul class="dropdown-menu">
        <% if can? :manage, Spotlight::Site.instance %>
          <li><%= link_to t(:'spotlight.header_links.edit_site'), spotlight.edit_site_path, class: 'dropdown-item' %></li>
        <% end %>
        <% if can? :create, Spotlight::Exhibit %>
          <li>
            <%= link_to t(:'spotlight.header_links.create_exhibit'), spotlight.new_exhibit_path, class: 'dropdown-item' %>
          </li>
          <li class="dropdown-divider"></li>
        <% end %>
        <% if current_exhibit && can?(:curate, current_exhibit) %>
          <li>
            <%= link_to t('spotlight.header_links.dashboard'), spotlight.exhibit_dashboard_path(current_exhibit), class: 'dropdown-item' %>
          </li>
          <li class="dropdown-divider"></li>
        <% end %>

        <li>
          <%= link_to "Change Password", main_app.edit_user_registration_path, class: 'dropdown-item' %>
        </li>
        <li>
          <%= link_to t('spotlight.header_links.logout'), main_app.destroy_user_session_path, class: 'dropdown-item' %>
        </li>
      </ul>
    </li>
  <% else %>
    <li class="nav-item">
      <%= link_to t('spotlight.header_links.login'), main_app.new_user_session_path, class: 'nav-link' %>
    </li>
  <% end %>
  <% if current_exhibit and show_contact_form? %>
    <li class="nav-item">
      <%= link_to t('spotlight.header_links.contact'), spotlight.new_exhibit_contact_form_path(current_exhibit), data: {behavior: 'contact-link', target: 'report-problem-form' }, class: 'nav-link' %>
    </li>
  <% end %>
</ul>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.3 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.2 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.1 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.rc6 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.rc5 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.rc4 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.rc3 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.rc2 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.rc1 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.10 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.9 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.8 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.7 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.6 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.5 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.4 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.3 app/views/shared/_user_util_links.html.erb
blacklight-spotlight-3.0.0.alpha.2 app/views/shared/_user_util_links.html.erb