From da1b0b5666bab397f8149bfdcbff5bfd31b9f85a Mon Sep 17 00:00:00 2001 From: fla Date: Sat, 13 Jun 2015 12:26:51 +0200 Subject: [PATCH] Add links to add or invite contacts --- app/views/aspects/_no_contacts_message.haml | 13 ++++++------- config/locales/diaspora/en.yml | 4 +++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/aspects/_no_contacts_message.haml b/app/views/aspects/_no_contacts_message.haml index a3977ddc1..da680c96c 100644 --- a/app/views/aspects/_no_contacts_message.haml +++ b/app/views/aspects/_no_contacts_message.haml @@ -3,10 +3,9 @@ -# the COPYRIGHT file. #no_contacts.empty_message - = t('.you_should_add_some_more_contacts') - %br - %br - = t('.try_adding_some_more_contacts') - - if AppConfig.settings.community_spotlight.enable? - != t('.or_spotlight', :link => link_to(t(".community_spotlight") , community_spotlight_path)) - + %p.lead + = t('.you_should_add_some_more_contacts') + %p + != t('.try_adding_some_more_contacts', search_link: link_to(t(".search_link_text"), search_path), invite_link: link_to(t(".invite_link_text"), new_user_invitation_path)) + - if AppConfig.settings.community_spotlight.enable? + != t('.or_spotlight', :link => link_to(t(".community_spotlight") , community_spotlight_path)) diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 7b30fee8f..a96ff23ca 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -204,7 +204,9 @@ en: 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 or invite more contacts." + try_adding_some_more_contacts: "You can %{search_link} or %{invite_link} more contacts." + search_link_text: "search" + invite_link_text: "invite" or_spotlight: "Or you can share with %{link}" community_spotlight: "Community spotlight" aspect_listings: