-# Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :head do =javascript_include_tag 'aspect-contacts' :javascript EditPane.setTranslations({ doneEditing: "#{t('.done_editing')}", editAspect:"#{t('aspects.show.edit_aspect')}" }); - if aspect != :all && aspect.contacts.count == 0 :javascript $(document).ready(function(){ EditPane.fadeIn(); }); - if (aspect == :all) && @request_count > 0 #new_request_pane{:class => "everyone"} %h1.new_request{:style => 'text-align:center'} = new_request_link(@request_count) #left_pane{:class => ("everyone" if aspect == :all)} - if aspect == :all %h3= t('.all_contacts') .section.contact_pictures - for contact in contacts = person_image_link(contact.person) - if aspect == :all && @contacts.count == 0 %h4 = t('.no_contacts') = form_tag(people_path, :method => 'get') do = text_field_tag 'q', nil, :placeholder => t('search'), :type => 'search', :results => 5 -if aspect == :all .section.aspect_listings %h3 = link_to(t('.aspects'), aspects_manage_path) .right{:style=>"font-size:12px;top:7px;"} = link_to t('.add_aspect'), '#add_aspect_pane', :class => "add_aspect_button" %ul - for a_hash in @aspect_hashes %li %h4 = link_to a_hash[:aspect], a_hash[:aspect] %span = t('contacts', :count=>a_hash[:contact_count]) - if a_hash[:contact_count] > 0 - for person in a_hash[:people] = person_image_link(person) .section %h3= t('.invites') = render "shared/invitations", :invites => @invites