From 8df864dec1f963b70403ead7094fffc824377ba1 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Sun, 21 Nov 2010 22:37:22 -0800 Subject: [PATCH] everyone -> 'all contacts' on home page. removed repeated user links. --- app/views/aspects/index.html.haml | 10 +--------- app/views/shared/_aspect_contacts.haml | 2 +- app/views/shared/_publisher.haml | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 4864a53a1..963e2a7fd 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -3,17 +3,9 @@ -# the COPYRIGHT file. .span-24.last - %h2{:style=>"position:relative;"} - + %h2 Home - .right{:style=>"font-size:12px;"} - = link_to "View Profile", current_user.person - | - = link_to "Edit Profile", edit_person_path(current_user.person) - | - = link_to "Edit Account", edit_user_path(current_user) - .span-15.last = render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count = render 'shared/publisher', :aspect => @aspect diff --git a/app/views/shared/_aspect_contacts.haml b/app/views/shared/_aspect_contacts.haml index 4db2a9a15..a2b726a61 100644 --- a/app/views/shared/_aspect_contacts.haml +++ b/app/views/shared/_aspect_contacts.haml @@ -57,7 +57,7 @@ #left_pane{:class => ("everyone" if aspect == :all)} - if aspect == :all - %h2= t('.everyone') + %h2 All contacts - else %h2{:style=>"position:relative;margin-bottom:0;"} = aspect diff --git a/app/views/shared/_publisher.haml b/app/views/shared/_publisher.haml index 7ea85dce3..e506af86c 100644 --- a/app/views/shared/_publisher.haml +++ b/app/views/shared/_publisher.haml @@ -31,7 +31,7 @@ %p %params - = status.label :message, t('.post_a_message_to', :aspect => (aspect == :all ? "everyone" : aspect)) + = status.label :message, t('.post_a_message_to', :aspect => (aspect == :all ? "all contacts" : aspect)) = status.text_area :message, :rows => 2, :value => params[:prefill] = status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id)