From 1a089c4b0a1b7e8e94be1b6565f398f5ce2386d0 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 4 Mar 2016 12:31:58 +0100 Subject: [PATCH] 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. --- app/views/layouts/_topbar.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_topbar.slim b/app/views/layouts/_topbar.slim index c9bc296..00cff98 100644 --- a/app/views/layouts/_topbar.slim +++ b/app/views/layouts/_topbar.slim @@ -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