60 lines
1.8 KiB
Text
60 lines
1.8 KiB
Text
-# 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
|
|
= include_javascripts :aspects
|
|
|
|
#section_header
|
|
%h2=t('.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=t('.no_requests')
|
|
- else
|
|
- for request in @remote_requests
|
|
%li.person.request{:data=>{:guid=>request.id, :person_id=>request.from.id}}
|
|
.delete
|
|
.x
|
|
X
|
|
.circle
|
|
= person_image_tag(request.from)
|
|
|
|
= render 'shared/invitations', :invites => @invites
|
|
|
|
.span-19.last
|
|
%ul#aspect_list
|
|
- for aspect in @aspects
|
|
%li.aspect{:data=>{:guid=>aspect.id}}
|
|
|
|
.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_contact'), "#manage_aspect_contacts_pane_#{aspect.id}", :class => 'manage_aspect_contacts_button'
|
|
%li!= remove_link(aspect)
|
|
|
|
%ul.dropzone{:data=>{:aspect_id=>aspect.id}}
|
|
-for contact in aspect.contacts
|
|
%li.person{:data=>{:guid=>contact.person.id, :aspect_id=>aspect.id}}
|
|
.delete
|
|
.x
|
|
X
|
|
.circle
|
|
= person_image_tag(contact.person)
|
|
.draggable_info
|
|
=t('.drag_to_add')
|
|
|
|
.fancybox_content
|
|
%div{:id => "manage_aspect_contacts_pane_#{aspect.id}"}
|
|
= render "requests/manage_aspect_contacts", :aspect => aspect, :manage => true
|
|
|