-# 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 #aspect_edit_pane #facebox_header{:data=>{:guid=>@aspect.id}} .right = t('contacts', :count =>@aspect_contacts_count) - if @aspect.contacts_visible = link_to image_tag('icons/padlock-open.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :class => 'open', :title => t('.aspect_list_is_visible')), "aspects/#{@aspect.id}/toggle_contact_visibility", :remote => true - else = link_to image_tag('icons/padlock-closed.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :title => t('.aspect_list_is_not_visible')), "aspects/#{@aspect.id}/toggle_contact_visibility", :remote => true %h3#aspect_name_title %span.name= @aspect %span.tiny_text = link_to t('.rename'), '#', :id => 'rename_aspect_link' #aspect_name_edit.hidden = form_for @aspect, :remote => true do |aspect| = aspect.text_field :name = aspect.submit t('.update'), :disable_with => t('.updating'), :class => 'button' - if @contacts.count > 0 = render 'shared/contact_list', :aspect => @aspect, :contacts => @contacts %br %div{:style => "text-align:right;"} = link_to t('.done'), '#', :class => 'button', :rel => 'close' = link_to t('delete'), @aspect, :method => "delete", :confirm => t('.confirm_remove_aspect'), :class => 'button'