<% if user.present? %>
<%= _('Logged in as %s') % user.identifier %>
- <%= _('User since %s/%s') % [user.created_at.month, user.created_at.year] %>
- <%= link_to _('Homepage'), url_for(user.public_profile_url) %>
<%= button(:'menu-logout', _('Logout'), :controller => 'account', :action => 'logout') %>
<% else %>
<%= render :file => 'account/login_block' %>
<% end%>