Sha256: 3df8c61d2d95cdeaa115bd9549cd8bb12ebbb32d9feb09b4eb55fed46d3499c1

Contents?: true

Size: 1.35 KB

Versions: 42

Compression:

Stored size: 1.35 KB

Contents

<ul id="user_utility_links" class="nav navbar-nav navbar-right">
  <%= render 'shared/locale_picker' if available_translations.size > 1 %>
  <% if user_signed_in? %>
    <li>
      <%= render_notifications(user: current_user) %>
    </li>
    <li class="dropdown">
      <%= link_to hyrax.dashboard_profile_path(current_user), role: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false, controls: 'user-util-links' } do %>
        <span class="sr-only"><%= t("hyrax.toolbar.profile.sr_action") %></span>
        <span class="hidden-xs">&nbsp;<%= current_user.name %></span>
        <span class="sr-only"> <%= t("hyrax.toolbar.profile.sr_target") %></span>
        <span class="fa fa-user" aria-hidden="true"></span>
        <span class="caret"></span>
      <% end %>
      <ul id="user-util-links" class="dropdown-menu dropdown-menu-right" role="menu">
        <li><%= link_to t("hyrax.toolbar.dashboard.menu"), hyrax.dashboard_path %></li>

        <li class="divider"></li>
        <li><%= link_to t("hyrax.toolbar.profile.logout"), main_app.destroy_user_session_path %></li>
      </ul>
    </li><!-- /.btn-group -->
  <% else %>
    <li>
      <%= link_to main_app.new_user_session_path do %>
        <span class="glyphicon glyphicon-log-in" aria-hidden="true"></span> <%= t("hyrax.toolbar.profile.login") %>
      <% end %>
    </li>
  <% end %>
</ul>

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/_user_util_links.html.erb
hyrax-3.5.0 app/views/_user_util_links.html.erb
hyrax-3.4.2 app/views/_user_util_links.html.erb
hyrax-3.4.1 app/views/_user_util_links.html.erb
hyrax-3.4.0 app/views/_user_util_links.html.erb
hyrax-3.3.0 app/views/_user_util_links.html.erb
hyrax-3.2.0 app/views/_user_util_links.html.erb
hyrax-2.9.6 app/views/_user_util_links.html.erb
hyrax-3.1.0 app/views/_user_util_links.html.erb
hyrax-2.9.5 app/views/_user_util_links.html.erb
hyrax-3.0.2 app/views/_user_util_links.html.erb
hyrax-3.0.1 app/views/_user_util_links.html.erb
hyrax-3.0.0 app/views/_user_util_links.html.erb
hyrax-3.0.0.pre.rc4 app/views/_user_util_links.html.erb
hyrax-2.9.4 app/views/_user_util_links.html.erb
hyrax-3.0.0.pre.rc3 app/views/_user_util_links.html.erb
hyrax-2.9.3 app/views/_user_util_links.html.erb
hyrax-2.9.2 app/views/_user_util_links.html.erb
hyrax-2.9.1 app/views/_user_util_links.html.erb
hyrax-2.9.0 app/views/_user_util_links.html.erb