-# 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 'jquery-ui-1.8.4.custom.min.js' = javascript_include_tag 'aspect-edit.js' #section_header %h2 Manage aspects .right = link_to(t('.add_a_new_aspect'), "#add_aspect_pane", :class => "new_aspect add_aspect_button button", :title => t('.add_a_new_aspect')) .span-4.append-1.last %h3=t('.requests') .requests %ul.dropzone - if @remote_requests.size < 1 %li.grey No new requests - else - for request in @remote_requests %li.requested_person{:id => request.person.id, :request_id => request.id} = person_image_tag(request.person) .name = request.person.real_name %h3=t('.ignore_remove') .remove %ul.dropzone %li.grey Drag to ignore/remove = render 'shared/invitations', :invites => @invites .span-19.last %ul#aspect_list - for aspect in @aspects %li.aspect .aspect_name %span.edit_name_field %h3{:contenteditable => true}= aspect.name %span.tip click to edit %ul.tools %li= link_to t('.add_a_new_friend'), "#add_request_pane_#{aspect.id}", :class => 'add_request_button' %li!= remove_link(aspect) %ul.dropzone{:id => aspect.id} -if aspect.people.size < 1 %li.grey Drag to add people -else -for person in aspect.people %li.person{:id => person.id, :from_aspect_id => aspect.id} = person_image_tag(person) .name = link_to person.real_name, person .fancybox_content %div{:id => "add_request_pane_#{aspect.id}"} = render "requests/new_request", :aspect => aspect