Handle the case where the pod doesn't have the diasporahq user.

This commit is contained in:
Sarah Mei 2011-08-06 12:48:23 -07:00
parent 421bfe6d8f
commit 66bb686f4b

View file

@ -70,19 +70,19 @@
= 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)
= person_link(diasporahq)
.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),
:locals => { :person => diasporahq,
:contact => current_user.contact_for(diasporahq),
:current_user => current_user }
#featured_users_pane