58092ae50e
This way we can link to login page from comments section if user is not authenticated
11 lines
227 B
Plaintext
11 lines
227 B
Plaintext
<ul id="session-info">
|
|
<% if current_user %>
|
|
<li>
|
|
<%= avatar_img current_user %>
|
|
<%= link_to "Log out", logout_path %>
|
|
</li>
|
|
<% else %>
|
|
<li><%= link_to "Log in", login_path %></li>
|
|
<% end %>
|
|
</ul>
|