add prompt to add more contacts if user has less than 2 contacts on aspect index

This commit is contained in:
danielgrippi 2011-08-01 15:31:13 -07:00
parent 756a20ecd4
commit 6daf7f5ad9
4 changed files with 16 additions and 29 deletions

View file

@ -19,9 +19,10 @@
= render 'shared/publisher', :aspect => aspect, :aspect_ids => aspect_ids
#main_stream.stream{:data => {:guids => aspect_ids.join(',')}}
- if current_user.contacts.size < 2
= render 'aspects/no_posts_message'
- if posts.length > 0
= render 'shared/stream', :posts => posts
#pagination
=link_to(t('more'), next_page_path, :class => 'paginate')
- else
= render 'aspects/no_posts_message', :post_count => posts.length

View file

@ -2,12 +2,10 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
#no_posts.empty_message{:class => ("hidden" unless post_count == 0)}
%h4{:style => "text-align:center;"}
= t('.you_have_no_contacts')
%br
%br
= t('.try_adding_some_more_contacts')
!= t('.or_featured', :link => link_to(t(".featured_users") , featured_users_path))
#no_contacts.empty_message
= t('.you_should_add_some_more_contacts')
%br
%br
= t('.try_adding_some_more_contacts')
!= t('.or_featured', :link => link_to(t(".featured_users") , featured_users_path))

View file

@ -111,7 +111,7 @@ en:
edit_aspect: "edit aspect"
no_posts_message:
start_talking: "Nobody has said anything yet!"
you_have_no_contacts: "You haven't added any contacts yet!"
you_should_add_some_more_contacts: "You should add some more contacts!"
try_adding_some_more_contacts: "You can search (top) or invite (right) more contacts."
or_featured: "Or you can share with %{link}"
featured_users: "featured users"

View file

@ -1339,22 +1339,6 @@ ul#settings_nav
a
:color #69AEDD
.floating.empty_message
:margin
:bottom 24px
:text
:align center
:padding 2em
:bottom 0.7em
.null_arrow
:margin
:top -14px
:font
:size 80px
:display inline-block
h1,h2,h3,h4
.description
:font
@ -3061,8 +3045,12 @@ ul.left_nav
:display inline-block
:text-align right
#no_posts
:padding 20px
#no_contacts
:text-align center
:padding 10px
:background
:color #eee
:color #666
.left
:position absolute