<% if @login.login? %>
<%=h @login.name%> <%=a 'logout', {}, context %>Logout
<% else %> <%= form('login', context) %>
Login
user
password
<% end %>