made the public info link in all aspects publisher
This commit is contained in:
parent
7e0825e492
commit
e8c49feca4
5 changed files with 16 additions and 3 deletions
|
|
@ -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;"}
|
||||
|
|
|
|||
9
app/views/shared/_public_explain.haml
Normal file
9
app/views/shared/_public_explain.haml
Normal 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
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue