From 95f9b8e6913ebb2ac58730e7994fb581c3ecc948 Mon Sep 17 00:00:00 2001 From: CharlotteGilhooly Date: Fri, 10 Aug 2012 19:57:10 +0100 Subject: [PATCH] Moved userbar to top of page; removed redundant commented block --- app/views/layouts/application.html.haml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index ab53707..d0e4070 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -8,6 +8,13 @@ %body + + #userbar + - if current_user + Logged in as + = current_user.email + = link_to "Log out", logout_path + - if notice %p#notice= notice @@ -16,15 +23,6 @@ = link_to(image_tag("TAL_logo_blue-h100.png", :size => "275x100", :alt => "Talk About Local logo"), :root, :class => "logo") - #userbar - - if current_user - Logged in as - = current_user.email - = link_to "Log out", logout_path - - else - -# - = link_to "Log in", login_path - = yield