Commit fe6dcffa authored by Maxwell Salzberg's avatar Maxwell Salzberg

remove cubbies from sidebar, also add invite code directly to sidebar to make even clearer

parent 06f38923
......@@ -17,7 +17,7 @@ module InvitationCodesHelper
end
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
def invited_by_message
......
- if AppConfig.configured_services.include?('facebook')
- if defined? remote
= link_to t('.from_facebook'), friend_finder_path('facebook', :remote => remote)
-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'
Share this link via email, blog, or favorite social network!
= invite_link(current_user.invitation_code)
= link_to t('.by_email'), new_user_invitation_path, :title => t('.invite_someone'), :rel => 'facebox'
\ No newline at end of file
......@@ -12,15 +12,6 @@
.content
= 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
.title
= image_tag('icons/heart.png')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment