consolidated invite/invite friends sections on aspect/index

This commit is contained in:
zhitomirskiyi 2011-01-26 18:05:42 -08:00
parent 9bd6b11ddf
commit bc81154c46
3 changed files with 10 additions and 10 deletions

View file

@ -41,12 +41,8 @@
= render 'aspects/aspect_listings', :aspects => @aspects, :contacts => @contacts = render 'aspects/aspect_listings', :aspects => @aspects, :contacts => @contacts
.section .section
%h4= t('shared.invitations.invites') %h4= t('shared.invitations.invite_your_friends')
= render "shared/invitations", :invites => @invites = 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'

View file

@ -2,8 +2,11 @@
= t('.invites_closed') = t('.invites_closed')
-else -else
-if invites > 0 -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) = t('.invitations_left', :count => invites)
- else - else
= t('.dont_have_now') = t('.dont_have_now')

View file

@ -120,6 +120,9 @@ en:
invitations_left: "(%{count} left)" invitations_left: "(%{count} left)"
dont_have_now: "You don't have any right now, but more invites are coming soon!" 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" 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: "Reshare" reshare: "Reshare"
public_explain: public_explain:
@ -189,8 +192,6 @@ en:
index: index:
handle_explanation: "This is your diaspora handle. Like an email address, you can give this to people to reach you." handle_explanation: "This is your diaspora handle. Like an email address, you can give this to people to reach you."
no_contacts: "No contacts" no_contacts: "No contacts"
invite_your_friends: "Invite your friends"
from_facebook: "From Facebook"
notifications: notifications:
request_accepted: "accepted your share request." request_accepted: "accepted your share request."
new_request: "offered to share with you." new_request: "offered to share with you."