Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
maxwell 2010-11-23 01:17:05 -08:00
commit 82d0e193e7
5 changed files with 98 additions and 52 deletions

View file

@ -4,7 +4,7 @@
.span-24.last .span-24.last
%h2{:style => "position:relative;"} %h2{:style => "position:relative;"}
= t('_home') = current_user.real_name
.right .right
%span.description %span.description
= current_user.diaspora_handle = current_user.diaspora_handle

View file

@ -5,63 +5,76 @@
- content_for :head do - content_for :head do
:javascript :javascript
$("div.public_toggle input").live("click", function(evt){ $(document).ready(function(){
if($(this).attr('checked') == true){ $("div.public_toggle input").live("click", function(evt){
$(".question_mark").click(); if($(this).attr('checked') == true){
}; $(".question_mark").click();
}); };
});
$("#publisher textarea, #publisher input").live("focus", function(evt){ $("#publisher textarea, #publisher input").live("focus", function(evt){
$("#publisher .options_and_submit").fadeIn(50); $("#publisher .options_and_submit").fadeIn(50);
}); });
$("#publisher form").live("submit", function(evt){ $("#publisher form").live("submit", function(evt){
$("#photodropzone").find('li').remove(); $("#photodropzone").find('li').remove();
$("#publisher .options_and_submit").hide(); $("#publisher .options_and_submit").hide();
});
$("#content_creation_button").bind("click", function(evt){
$("#publisher").find(".content_creation").show();
$("#publisher").find("textarea").focus();
});
}); });
#publisher #publisher
= owner_image_link
= form_for(StatusMessage.new, :remote => true) do |status| - if aspect == :all
%ul#photodropzone #content_creation_button
= status.error_messages = image_tag 'icons/monotone_chat_talk.png', :id => 'share_bubble'
#file-upload.button %h4 share across all of your aspects
= t('.add_photos')
%p .content_creation{:style=>("display:none;" if aspect == :all)}
%params = form_for(StatusMessage.new, :remote => true) do |status|
= status.label :message, t('.post_a_message_to', :aspect => (aspect == :all ? t('.all_contacts') : aspect)) %ul#photodropzone
= status.text_area :message, :rows => 2, :value => params[:prefill] = status.error_messages
#file-upload.button
= t('.add_photos')
= status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id) %p
%params
- unless aspect == :all
= status.label :message, t('.post_a_message_to', :aspect => (aspect == :all ? t('.all_contacts') : aspect))
= status.text_area :message, :rows => 2, :value => params[:prefill]
.options_and_submit = status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id)
.options_and_submit
.right
#fileInfo
= image_tag 'ajax-loader.gif', :class => 'hidden', :id => "publisher_spinner"
- if aspect == :all
= status.submit t('.share'), :title => t('.share_with_all'), :disable_with => t('.posting')
- else
= status.submit t('.share'), :title => t('.share_with', :aspect => aspect), :disable_with => t('.posting')
.right
#fileInfo
= image_tag 'ajax-loader.gif', :class => 'hidden', :id => "publisher_spinner"
- if aspect == :all - if aspect == :all
= status.submit t('.share'), :title => t('.share_with_all'), :disable_with => t('.posting') .public_toggle
- else %p.checkbox_select
= status.submit t('.share'), :title => t('.share_with', :aspect => aspect), :disable_with => t('.posting') = status.check_box( :public, {}, true, false )
= status.label :public, "make public"
= link_to (image_tag "social_media_logos/feed-16x16.png", :title => "RSS"), current_user.public_url
- if current_user.services
- for service in current_user.services
= image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider
- if aspect == :all = link_to '(?)', "#question_mark_pane", :class => 'question_mark', :style=>"display:none;"
.public_toggle
%p.checkbox_select
= status.check_box( :public, {}, true, false )
= status.label :public, "make public"
= link_to (image_tag "social_media_logos/feed-16x16.png", :title => "RSS"), current_user.public_url
- if current_user.services
- for service in current_user.services
= image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider
= link_to '(?)', "#question_mark_pane", :class => 'question_mark', :style=>"display:none;" .fancybox_content
#question_mark_pane
= render 'shared/public_explain'
.fancybox_content #publisher_photo_upload
#question_mark_pane = render 'photos/new_photo', :aspect_id => (aspect == :all ? aspect : aspect.id)
= render 'shared/public_explain'
#publisher_photo_upload
= render 'photos/new_photo', :aspect_id => (aspect == :all ? aspect : aspect.id)

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

View file

@ -806,14 +806,15 @@ label
#publisher #publisher
:background
:color #eee
:color #999 :color #999
:position relative :position relative
:min-height 53px
:margin :margin
:bottom 10px :bottom 10px
:top 0 :top 0
:padding 12px :padding 12px
:top 0 :top 1px
:top 0 :top 0
:border :border
@ -830,8 +831,6 @@ label
form form
:position relative :position relative
:margin
:left 65px
:top 0 :top 0
ul ul
@ -848,7 +847,7 @@ label
input[type='text'], input[type='text'],
textarea textarea
:width 400px :width 460px
:margin 0 :margin 0
.options_and_submit .options_and_submit
@ -873,6 +872,40 @@ label
#fileInfo #fileInfo
:display inline :display inline
.content_creation
:margin
:top 12px
#content_creation_button
:padding 10px
:left 5px
:top 15px
:bottom 5px
:position relative
:background
:color #eee
:margin
:bottom -12px
&:hover
:cursor pointer
h4
:margin
:left 40px
:font
:weight bold
:text-shadow 0 1px 0 #fff
#share_bubble
:height 40px
:width 40px
:display inline
:position absolute
:top 5px
#image_picker #image_picker
:margin :margin
:top 5px :top 5px