Sha256: 19db87dc88a24cea26a049525cae214fb7c1b70a90b47cd8a6c1d7b2db9dcb12

Contents?: true

Size: 1.42 KB

Versions: 7

Compression:

Stored size: 1.42 KB

Contents

<ul id="user_utility_links" class="nav navbar-nav navbar-right">
  <% if user_signed_in? %>
    <li>
      <%= link_to sufia.notifications_path do %>
        <%= t("sufia.toolbar.notifications") %>
        <%= render partial: 'users/notify_number' %>
      <% end %>
    </li>
    <li class="dropdown">
      <%= link_to sufia.profile_path(current_user), role: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false} do %>
        <span class="sr-only"><%= t("sufia.toolbar.profile.sr_action") %></span>
        <span class="hidden-xs">&nbsp;<%= current_user.name %></span>
        <span class="sr-only"> <%= t("sufia.toolbar.profile.sr_target") %></span>
        <span class="fa fa-user"></span>
        <span class="caret" ></span>
      <% end %>
      <ul class="dropdown-menu dropdown-menu-right" role="menu">
        <li><%= link_to t("sufia.toolbar.profile.view"), sufia.profile_path(current_user) %></li>
        <li><%= link_to t("sufia.toolbar.profile.edit"), sufia.edit_profile_path(current_user) %></li>
        <li class="divider"></li>
        <li><%= link_to t("sufia.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("sufia.toolbar.profile.login") %>
      <% end %>
    </li>
  <% end %>
</ul>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sufia-7.4.1 app/views/_user_util_links.html.erb
sufia-7.4.0 app/views/_user_util_links.html.erb
sufia-7.3.1 app/views/_user_util_links.html.erb
sufia-7.3.0 app/views/_user_util_links.html.erb
sufia-7.3.0.rc3 app/views/_user_util_links.html.erb
sufia-7.3.0.rc2 app/views/_user_util_links.html.erb
sufia-7.3.0.rc1 app/views/_user_util_links.html.erb