add prompt to add more contacts if user has less than 2 contacts on aspect index
This commit is contained in:
parent
756a20ecd4
commit
6daf7f5ad9
4 changed files with 16 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue