User logged in turned into normal link in the topbar

Otherwise there are two tabs in the navigation that appear to be active
which is misleading.
This commit is contained in:
Christoph Haas 2016-03-04 12:31:58 +01:00
parent cd5f34ba0e
commit 1a089c4b0a

View file

@ -29,6 +29,6 @@ header
// TODO: Show link for admin/moderation view if admin is logged in
li.has-form
- if user_signed_in?
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete, class: 'button'
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete
- else
= link_to 'Login', new_user_session_path