Sha256: 303cab4b396960144525657d3d7311a03db1887d894f24fc387c2d64dbb21072

Contents?: true

Size: 779 Bytes

Versions: 6

Compression:

Stored size: 779 Bytes

Contents

<% if current_user %>
  <ul class="nav navbar-nav navbar-right navbar-login-info">
    <li class='dropdown'>
    	<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<%= current_user.email %> <b class="caret"></b></a>
    	<ul class="dropdown-menu">
        <%= content_tag :li, link_to("<span class=\"glyphicon glyphicon-user\"></span>&nbsp;profile".html_safe, profile_path) %>
    		<%= content_tag :li, link_to("<span class=\"glyphicon glyphicon-off\"></span>&nbsp;#{t('logout').downcase}".html_safe, logout_path) %>
    	</ul>
    </li>
  </ul>
<% else # not logged in %>
  <ul class="nav navbar-nav navbar-right">
    <li><%= link_to(t('authentication.login_now'), email_input_path) %></li>
  </ul>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tkh_authentication-0.9.17.2 app/views/shared/_login_info_for_navbar.html.erb
tkh_authentication-0.9.17.1 app/views/shared/_login_info_for_navbar.html.erb
tkh_authentication-0.9.17 app/views/shared/_login_info_for_navbar.html.erb
tkh_authentication-0.9.16 app/views/shared/_login_info_for_navbar.html.erb
tkh_authentication-0.9.15 app/views/shared/_login_info_for_navbar.html.erb
tkh_authentication-0.9.14 app/views/shared/_login_info_for_navbar.html.erb