41 lines
1.4 KiB
Text
41 lines
1.4 KiB
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
|
|
- content_for :head do
|
|
:javascript
|
|
$("div.public_toggle input").live("click", function(evt){
|
|
if($(this).attr('checked') == true){
|
|
$(".question_mark").click();
|
|
};
|
|
});
|
|
|
|
$("#publisher textarea, #publisher input").live("focus", function(evt){
|
|
$("#publisher .options_and_submit").fadeIn(50);
|
|
});
|
|
|
|
$("#publisher form").live("submit", function(evt){
|
|
$("#publisher .options_and_submit").hide();
|
|
});
|
|
|
|
#publisher
|
|
= form_for StatusMessage.new, :remote => true do |status|
|
|
%p
|
|
= status.label :message, t('.post_a_message_to', :aspect => (aspect == :all ? t('.all') : aspect))
|
|
= status.text_area :message, :rows => 2, :value => params[:prefill]
|
|
|
|
= status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id)
|
|
|
|
.options_and_submit
|
|
- if aspect == :all
|
|
= status.submit t('.share'), :title => t('.share_with_all')
|
|
- else
|
|
= status.submit t('.share'), :title => t('.share_with', :aspect => aspect)
|
|
|
|
- if aspect == :all
|
|
.public_toggle
|
|
%p.checkbox_select
|
|
= status.check_box( :public, {}, true, false )
|
|
= status.label :public, t('.make_public')
|
|
= link_to '(?)', "#question_mark_pane", :class => 'question_mark', :style=>"display:none;"
|