From aa916d06047294c37460de669969170f9cce018a Mon Sep 17 00:00:00 2001
From: danielvincent <danielgrippi@gmail.com>
Date: Fri, 9 Jul 2010 18:50:39 -0700
Subject: [PATCH] moved User.first out of the application view

---
 app/views/layouts/application.html.haml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 09c7dff3b8..79abadcdf6 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -2,7 +2,7 @@
 %html
   %head
     %title
-      = User.first.real_name if User.first
+      = current_user.real_name if current_user
       = " | diaspora"
     %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
     
@@ -30,7 +30,7 @@
 
         #session_action
           - if user_signed_in?
-            =User.first.real_name
+            = current_user.real_name
             |
             = link_to "requests (#{@request_count})", requests_path
             |
@@ -50,9 +50,9 @@
         .span-20
           - if user_signed_in?
             %h1#user_name
-              = link_to User.first.real_name, root_url
+              = link_to current_user.real_name, root_url
               %span.description
                 = my_latest_message
           = yield
-        .span-20
+        .span-12
           = render "posts/debug"
-- 
GitLab