From bc81154c4654a0eb55a810970d79d55c7d07ed71 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Wed, 26 Jan 2011 18:05:42 -0800 Subject: [PATCH] consolidated invite/invite friends sections on aspect/index --- app/views/aspects/index.html.haml | 8 ++------ app/views/shared/_invitations.haml | 7 +++++-- config/locales/diaspora/en.yml | 5 +++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 2a244ba6c..637bcdb09 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -41,12 +41,8 @@ = render 'aspects/aspect_listings', :aspects => @aspects, :contacts => @contacts .section - %h4= t('shared.invitations.invites') + %h4= t('shared.invitations.invite_your_friends') = render "shared/invitations", :invites => @invites - - if SERVICES['facebook']['app_id'] !="" - .section - %h4 - = t('.invite_your_friends') - = link_to t('.from_facebook'), friend_finder_path('facebook'), :rel => 'facebox' + diff --git a/app/views/shared/_invitations.haml b/app/views/shared/_invitations.haml index 892c0e4a0..461cb2f0b 100644 --- a/app/views/shared/_invitations.haml +++ b/app/views/shared/_invitations.haml @@ -2,8 +2,11 @@ = t('.invites_closed') -else -if invites > 0 - = link_to t('.invite_someone'), new_user_invitation_path, :title => t('.invite_someone') + - if SERVICES['facebook']['app_id'] !="" + %h4{:style => 'text-align:center;'} + = link_to t('.from_facebook'), friend_finder_path('facebook'), :rel => 'facebox' + or + = link_to t('.by_email'), new_user_invitation_path, :title => t('.invite_someone') = t('.invitations_left', :count => invites) - else = t('.dont_have_now') - diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 0b079e325..2526317e8 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -120,6 +120,9 @@ en: invitations_left: "(%{count} left)" dont_have_now: "You don't have any right now, but more invites are coming soon!" invites_closed: "Invites are currently closed on this Diaspora pod" + invite_your_friends: "Invite your friends" + from_facebook: "From Facebook" + by_email: "by Email" reshare: reshare: "Reshare" public_explain: @@ -189,8 +192,6 @@ en: index: handle_explanation: "This is your diaspora handle. Like an email address, you can give this to people to reach you." no_contacts: "No contacts" - invite_your_friends: "Invite your friends" - from_facebook: "From Facebook" notifications: request_accepted: "accepted your share request." new_request: "offered to share with you."