From 9e92230cf77743315b30895aa42d875b6c8f9af2 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Mon, 27 Jun 2011 15:32:39 -0700 Subject: [PATCH] make contact listings more compact on contact index (we don't need to know their tags here) --- app/views/contacts/index.html.haml | 16 ++++++++++++++-- public/stylesheets/sass/application.sass | 22 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/app/views/contacts/index.html.haml b/app/views/contacts/index.html.haml index 9189aa599..ca7d1872a 100644 --- a/app/views/contacts/index.html.haml +++ b/app/views/contacts/index.html.haml @@ -34,10 +34,22 @@ All Contacts .span-15 - #people_stream.stream + #people_stream.stream.contacts - if @contacts.size > 0 - for contact in @contacts - = render :partial => 'people/person', :locals => {:contact => contact, :person => contact.person} + + .stream_element{:id => contact.person.id} + .right + = render :partial => 'people/relationship_action', + :locals => { :person => contact.person, :contact => contact, + :current_user => current_user } + = person_image_link(contact.person) + .content + %span.from + =person_link(contact.person) + .info + = contact.person.diaspora_handle + - else %h3.no_contacts No contacts. diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index b62caff97..9a4b607f2 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -3024,3 +3024,25 @@ ul#left_nav .no_contacts :text-align center :top 50px + +#people_stream.contacts + .stream_element + :padding 10px + :min-height 30px + .right + :top 16px + .from + :position relative + a + :color #444 + .content + :padding + :left 40px + .info + :margin + :top -2px + + .avatar + :height 30px + :width 30px +