63 lines
1.7 KiB
Text
63 lines
1.7 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
|
|
|
|
%h3
|
|
= t('.your_aspects')
|
|
.description
|
|
= t('.description')
|
|
|
|
-if @requests.size > 0
|
|
%h3
|
|
= t('.your_inviter')
|
|
|
|
%h3
|
|
%ul.dropzone
|
|
- if @requests.size < 1
|
|
%li=t('.no_requests')
|
|
- else
|
|
- for request in @requests
|
|
%li.person.request{:data=>{:guid=>request.id, :person_id=>request.sender.id}}
|
|
= person_image_link(request.sender)
|
|
.requests
|
|
%p= "#{t('.drag_to_add')} =>"
|
|
|
|
|
|
%ul#aspect_list
|
|
- for aspect in @all_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!= 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_link(contact.person)
|
|
%h4
|
|
= t('.aspect_name')
|
|
= form_for Aspect.new do |aspect|
|
|
= aspect.text_field :name, :style => "display:inline;"
|
|
%p.checkbox_select
|
|
= aspect.label :contacts_visible, t('aspects.edit.make_aspect_list_visible')
|
|
= aspect.check_box :contacts_visible, :default => true
|
|
%br
|
|
= aspect.submit t('.add')
|
|
%br
|
|
%br
|
|
|
|
.submit_block
|
|
= link_to "#{t('users.getting_started.save_and_continue')} →", getting_started_path(:step => 3), :class => "button"
|
|
|