From 66bb686f4b6b4ee8d9f057144ab9ca6a7c96d584 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 6 Aug 2011 12:48:23 -0700 Subject: [PATCH] Handle the case where the pod doesn't have the diasporahq user. --- app/views/users/getting_started.html.haml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/users/getting_started.html.haml b/app/views/users/getting_started.html.haml index f6137cb9c..3ecc257ce 100644 --- a/app/views/users/getting_started.html.haml +++ b/app/views/users/getting_started.html.haml @@ -70,20 +70,20 @@ = t('.connect_with_people_explanation') #diaspora_hq_pane - - person = Person.find_by_diaspora_handle("diasporahq@joindiaspora.com") - = person_image_link(person, :size => :thumb_medium) + - if diasporahq = Person.find_by_diaspora_handle("diasporahq@joindiaspora.com") + = person_image_link(diasporahq, :size => :thumb_medium) - .name - = person_link(person) + .name + = person_link(diasporahq) - .info - Get updates about the project from the core team. + .info + Get updates about the project from the core team. - .add_to_aspect - = render :partial => 'people/relationship_action', - :locals => { :person => person, - :contact => current_user.contact_for(person), - :current_user => current_user } + .add_to_aspect + = render :partial => 'people/relationship_action', + :locals => { :person => diasporahq, + :contact => current_user.contact_for(diasporahq), + :current_user => current_user } #featured_users_pane %h4