From 513b2cb5bc727d81aa1afd13acb5e917ffbfa43b Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Wed, 5 Oct 2011 15:07:35 -0700 Subject: [PATCH] make the aspect edit page a little more helpful for empty state. a loonngggg way to go --- app/views/contacts/index.html.haml | 10 +++++++++- config/locales/diaspora/en.yml | 7 ++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/views/contacts/index.html.haml b/app/views/contacts/index.html.haml index 3c7827e61..4c3e2c929 100644 --- a/app/views/contacts/index.html.haml +++ b/app/views/contacts/index.html.haml @@ -25,7 +25,7 @@ = link_to t('.start_a_conversation'), new_conversation_path(:aspect_id => @aspect.id, :name => @aspect.name), conv_opts - if @contacts.size > suggested_limit = javascript_tag "$('.conversation_button').tipsy({trigger: 'hover', gravity: 'n'});" - = link_to t('.edit_aspect', :name => @aspect.name), edit_aspect_path(@aspect), :rel => "facebox" + = link_to t('.add_to_aspect', :name => @aspect.name), edit_aspect_path(@aspect), :rel => "facebox" - if @contacts.size > 0 - for contact in @contacts @@ -57,4 +57,12 @@ - else %h3.no_contacts = t('.no_contacts') + %br + %br + = t('.check_out') + = link_to t('contacts.featured.featured_users'), "/featured" + - if @aspect + or + = link_to t('.add_to_aspect', :name => @aspect.name).downcase, edit_aspect_path(@aspect), :rel => "facebox" + diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index c5a01e04f..cc4c66a5f 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -225,7 +225,7 @@ en: other: "%{count} reactions" contacts: - zero: "no contacts" + zero: "contacts" one: "1 contact" two: "%{count} contacts" few: "%{count} contacts" @@ -236,12 +236,13 @@ en: sharing: people_sharing: "People sharing with you:" index: - edit_aspect: "Edit %{name}" + add_to_aspect: "Add contacts to %{name}" start_a_conversation: "Start a conversation" add_a_new_aspect: "Add a new aspect" title: "Contacts" your_contacts: "Your Contacts" - no_contacts: "No contacts." + no_contacts: "Looks like you need to add some contacts!" + check_out: "Check out" my_contacts: "My Contacts" all_contacts: "All Contacts" only_sharing_with_me: "Only sharing with me"