Fix the last broken jasmine spec by restoring the #no_posts div
This commit is contained in:
parent
f0f388d9e1
commit
5eadc7d41c
4 changed files with 18 additions and 8 deletions
|
|
@ -18,9 +18,12 @@
|
|||
|
||||
= render 'shared/publisher', :aspect => aspect, :aspect_ids => aspect_ids
|
||||
|
||||
- if current_user.contacts.size < 2
|
||||
- if posts.length == 0
|
||||
= render 'aspects/no_posts_message'
|
||||
|
||||
- if current_user.contacts.size < 2
|
||||
= render 'aspects/no_contacts_message'
|
||||
|
||||
#main_stream.stream{:data => {:guids => aspect_ids.join(',')}}
|
||||
- if posts.length > 0
|
||||
= render 'shared/stream', :posts => posts
|
||||
|
|
|
|||
11
app/views/aspects/_no_contacts_message.haml
Normal file
11
app/views/aspects/_no_contacts_message.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-# Copyright (c) 2010, Diaspora Inc. This file is
|
||||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
#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))
|
||||
|
||||
|
|
@ -2,10 +2,5 @@
|
|||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
#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))
|
||||
|
||||
#no_posts.empty_message
|
||||
= t('.start_talking')
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ en:
|
|||
edit_aspect: "edit aspect"
|
||||
no_posts_message:
|
||||
start_talking: "Nobody has said anything yet!"
|
||||
no_contacts_message:
|
||||
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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue