diaspora/app/views/contacts/index.html.haml
2013-01-29 10:01:08 -02:00

40 lines
1.3 KiB
Text

-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- content_for :page_title do
= t('.title')
- content_for :head do
= javascript_include_tag :people
#section_header
%h2
= t('.title')
= render 'shared/contact_sidebar'
.span-18.last
#people_stream.stream.contacts
- if @contacts_size > 0
- if @aspect
#aspect_controls
- if @contacts_size < 20
= start_a_conversation_link(@aspect, @contacts_size)
= link_to t('.add_to_aspect', :name => @aspect.name), edit_aspect_path(@aspect), :rel => "facebox"
= render @contacts
= will_paginate @contacts
- else
%h3.no_contacts
= t('.no_contacts')
%br
%br
- if @aspect
!= t('.no_contacts_message_with_aspect',
:community_spotlight => link_to(t('.community_spotlight'), community_spotlight_path),
:add_to_aspect_link => link_to(t('.add_to_aspect_link', :name => @aspect.name), edit_aspect_path(@aspect), :rel => "facebox"))
- else
!= t('.no_contacts_message',
:community_spotlight => link_to(t('.community_spotlight'), community_spotlight_path))