asciinema.org/app/views/layouts/_session_info.html.erb
Marcin Kulik 58092ae50e Let's have separate page for login buttons
This way we can link to login page from comments section
if user is not authenticated
2012-03-04 11:33:11 +01:00

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>