Skip to content
Extraits de code Groupes Projets
Valider 6daf7f5a rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

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

parent 756a20ec
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
= render 'shared/publisher', :aspect => aspect, :aspect_ids => aspect_ids = render 'shared/publisher', :aspect => aspect, :aspect_ids => aspect_ids
#main_stream.stream{:data => {:guids => aspect_ids.join(',')}} #main_stream.stream{:data => {:guids => aspect_ids.join(',')}}
- if current_user.contacts.size < 2
= render 'aspects/no_posts_message'
- if posts.length > 0 - if posts.length > 0
= render 'shared/stream', :posts => posts = render 'shared/stream', :posts => posts
#pagination #pagination
=link_to(t('more'), next_page_path, :class => 'paginate') =link_to(t('more'), next_page_path, :class => 'paginate')
- else
= render 'aspects/no_posts_message', :post_count => posts.length
...@@ -2,12 +2,10 @@ ...@@ -2,12 +2,10 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
#no_posts.empty_message{:class => ("hidden" unless post_count == 0)} #no_contacts.empty_message
%h4{:style => "text-align:center;"} = t('.you_should_add_some_more_contacts')
= t('.you_have_no_contacts') %br
%br %br
%br = t('.try_adding_some_more_contacts')
= t('.try_adding_some_more_contacts') != t('.or_featured', :link => link_to(t(".featured_users") , featured_users_path))
!= t('.or_featured', :link => link_to(t(".featured_users") , featured_users_path))
...@@ -111,7 +111,7 @@ en: ...@@ -111,7 +111,7 @@ en:
edit_aspect: "edit aspect" edit_aspect: "edit aspect"
no_posts_message: no_posts_message:
start_talking: "Nobody has said anything yet!" 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." try_adding_some_more_contacts: "You can search (top) or invite (right) more contacts."
or_featured: "Or you can share with %{link}" or_featured: "Or you can share with %{link}"
featured_users: "featured users" featured_users: "featured users"
......
...@@ -1339,22 +1339,6 @@ ul#settings_nav ...@@ -1339,22 +1339,6 @@ ul#settings_nav
a a
:color #69AEDD :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 h1,h2,h3,h4
.description .description
:font :font
...@@ -3061,8 +3045,12 @@ ul.left_nav ...@@ -3061,8 +3045,12 @@ ul.left_nav
:display inline-block :display inline-block
:text-align right :text-align right
#no_posts #no_contacts
:padding 20px :text-align center
:padding 10px
:background
:color #eee
:color #666
.left .left
:position absolute :position absolute
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter