Sha256: d509c6fb6ced3c091737d056f1a9ec9febc6fa4eac1089b67c8b8433a988c5ce

Contents?: true

Size: 1.93 KB

Versions: 8

Compression:

Stored size: 1.93 KB

Contents

<div id="user-util-links" class="justify-content-md-end">

  <% if current_user %>

      <div id="user-nav-btn" class="btn-group btn-group-xs">
        <%= link_to(icon('fas', 'user', aria: { hidden: true }) + ' ' + current_user.first_name,
                    current_user, class: 'btn btn-outline-secondary btn-sm') if current_user %>
        <button class="btn btn-xs btn-outline-secondary dropdown-toggle" data-toggle="dropdown"
                aria-haspopup="true" aria-expanded="false">
        </button>
        <div id="user-util-links-list" class="dropdown-menu">
          <%= link_to t('blacklight.header_links.folders'), folders_path, class: 'dropdown-item' %>
          <%= link_to t('blacklight.header_links.saved_searches'), saved_searches_path, class: 'dropdown-item' %>
          <%= link_to t('blacklight.header_links.search_history'), blacklight.search_history_path, class: 'dropdown-item' %>
          <%= link_to t('devise.registrations.edit'), edit_user_registration_path, class: 'dropdown-item' %>
          <%= link_to t('blacklight.header_links.logout'), destroy_user_session_path, class: 'dropdown-item' %>
        </div>
      </div>

  <% else %>
      <div id="util-links-nologin">
        <ul id="user-util-links-list" class="list-inline">
          <% unless @searches.blank? && session[:history].blank? %>
              <% if current_or_guest_user %>
                  <li class="list-inline-item"><%= link_to t('blacklight.header_links.folders'), folders_path %></li>
              <% end %>
          <% end %>
          <% if has_user_authentication_provider? %>
              <li class="list-inline-item"><%= link_to t('blacklight.header_links.login'), new_user_session_path %></li>
          <% end %>
        </ul>
      </div>

  <% end %>

  <% unless params[:controller] == 'pages' && params[:action] == 'home' %>
      <div id="header-search">
        <%= render :partial=>'shared/search_form_header'  %>
      </div>
  <% end %>

</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bpluser-0.5.0 app/views/shared/_user_util_links.html.erb
bpluser-0.4.0 app/views/shared/_user_util_links.html.erb
bpluser-0.3.0 app/views/shared/_user_util_links.html.erb
bpluser-0.2.0.4 app/views/shared/_user_util_links.html.erb
bpluser-0.2.0.3 app/views/shared/_user_util_links.html.erb
bpluser-0.2.0.2 app/views/shared/_user_util_links.html.erb
bpluser-0.2.0.1 app/views/shared/_user_util_links.html.erb
bpluser-0.2.0 app/views/shared/_user_util_links.html.erb