Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/contacts/featured.haml31
1 files changed, 16 insertions, 15 deletions
diff --git a/app/views/contacts/featured.haml b/app/views/contacts/featured.haml
index b3e9b4f0c..6f0b48514 100644
--- a/app/views/contacts/featured.haml
+++ b/app/views/contacts/featured.haml
@@ -20,18 +20,19 @@
%br
#featured_users
- - @people.each do |person|
- .user_card
- = person_image_link(person, :size => :thumb_large)
- %h4
- = person.name
-
- .tags
- - 5.times do |n|
- - person.profile.tags.each do |tg|
- = "##{tg}"
-
- .add_user_to_aspect
- = render :partial => 'people/relationship_action',
- :locals => { :person => person, :contact => current_user.contact_for(person),
- :current_user => current_user }
+ - unless @people.blank?
+ - @people.each do |person|
+ .user_card
+ = person_image_link(person, :size => :thumb_large)
+ %h4
+ = person.name
+
+ .tags
+ - 5.times do |n|
+ - person.profile.tags.each do |tg|
+ = "##{tg}"
+
+ .add_user_to_aspect
+ = render :partial => 'people/relationship_action',
+ :locals => { :person => person, :contact => current_user.contact_for(person),
+ :current_user => current_user }