remove cubbies from sidebar, also add invite code directly to sidebar to make even clearer
This commit is contained in:
parent
06f389231a
commit
fe6dcffa8f
3 changed files with 4 additions and 17 deletions
|
|
@ -17,7 +17,7 @@ module InvitationCodesHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def invite_link(invite_code)
|
def invite_link(invite_code)
|
||||||
text_field_tag :invite_code, invite_code_url(@invite_code), :readonly => true
|
text_field_tag :invite_code, invite_code_url(invite_code), :readonly => true
|
||||||
end
|
end
|
||||||
|
|
||||||
def invited_by_message
|
def invited_by_message
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
- if AppConfig.configured_services.include?('facebook')
|
Share this link via email, blog, or favorite social network!
|
||||||
- if defined? remote
|
= invite_link(current_user.invitation_code)
|
||||||
= link_to t('.from_facebook'), friend_finder_path('facebook', :remote => remote)
|
= link_to t('.by_email'), new_user_invitation_path, :title => t('.invite_someone'), :rel => 'facebox'
|
||||||
-else
|
|
||||||
= link_to t('.from_facebook'), friend_finder_path('facebook')
|
|
||||||
%br
|
|
||||||
= link_to t('.by_email'), new_user_invitation_path, :title => t('.invite_someone'), :rel => 'facebox'
|
|
||||||
|
|
@ -12,15 +12,6 @@
|
||||||
.content
|
.content
|
||||||
= render "shared/invitations"
|
= render "shared/invitations"
|
||||||
|
|
||||||
- unless has_connected_cubbies?
|
|
||||||
.section
|
|
||||||
.title
|
|
||||||
= image_tag('icons/cubbies.png')
|
|
||||||
%h5
|
|
||||||
= t('aspects.index.cubbies.heading')
|
|
||||||
.content
|
|
||||||
= t('aspects.index.cubbies.explanation')
|
|
||||||
= link_to t('aspects.index.cubbies.learn_more'), token_path
|
|
||||||
.section
|
.section
|
||||||
.title
|
.title
|
||||||
= image_tag('icons/heart.png')
|
= image_tag('icons/heart.png')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue