made the public info link in all aspects publisher

This commit is contained in:
maxwell 2010-10-15 14:10:10 -07:00
parent 7e0825e492
commit e8c49feca4
5 changed files with 16 additions and 3 deletions

View file

@ -1,6 +1,6 @@
- unless @aspect == :all
%h4 Invites
= link_to "Invite a friend", "#invite_user_pane", :class => "invite_user_button", :class => "invite_user_button", :title => "Invite a friend"
= link_to "Invite a friend", "#invite_user_pane", :class => "invite_user_button", :title => "Invite a friend"
= "(#{invites} left)"
%br
.yo{ :style => "display:none;"}

View file

@ -0,0 +1,9 @@
%h1 you are about to post a public message!
%p
this message is going to be posted to your public feed,
and to any services you may have connected to Diaspora.
- if @logged_in
= connected_fb_as(@access_token)
- else
= link_to "Connect to Facebook", @fb_access_url

View file

@ -35,7 +35,10 @@
.public_toggle
= f.check_box( :public, :value => false )
share on facebook
= link_to 'public info', "#question_mark_pane", :class => 'question_mark'
.yo{:style => "display:none;"}
#question_mark_pane
= render 'shared/public_explain'
.buttons
- if @aspect == :all
= f.submit t('.share'), :title => "Share with all aspects"

View file

@ -18,7 +18,7 @@
= link_to "Disconnect from Facebook", services_destroy_path
- else
= link_to "Connect to Facebook (DO NOT USE WITH A REAL ACCOUNT)", @fb_access_url
= link_to "Connect to Facebook", @fb_access_url
#content_bottom
.back

View file

@ -30,6 +30,7 @@ $(document).ready(function(){
$(".add_request_button").fancybox({ 'titleShow': false });
$(".invite_user_button").fancybox({ 'titleShow': false });
$(".add_request_button").fancybox({ 'titleShow': false });
$(".question_mark").fancybox({ 'titleShow': false });
$("input[type='submit']").addClass("button");