make the aspect edit page a little more helpful for empty state. a loonngggg way to go

This commit is contained in:
Maxwell Salzberg 2011-10-05 15:07:35 -07:00
parent d8d3996f75
commit 513b2cb5bc
2 changed files with 13 additions and 4 deletions

View file

@ -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"

View file

@ -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"