fixed build. publisher lights up on hover on aspect#index page. updated login page text.

This commit is contained in:
danielvincent 2010-11-23 03:10:28 -08:00
parent 82d0e193e7
commit c9c84794af
17 changed files with 452 additions and 1199 deletions

View file

@ -16,10 +16,10 @@ module AspectsHelper
end end
def add_to_aspect_button(aspect_id, person_id) def add_to_aspect_button(aspect_id, person_id)
link_to image_tag('icons/monotone_plus_add_round.png'), {:action => 'add_to_aspect', :aspect_id => aspect_id, :person_id => person_id}, :remote => true, :class => 'add button' link_to image_tag('icons/monotone_plus_add_round.png'), {:controller => "aspects", :action => 'add_to_aspect', :aspect_id => aspect_id, :person_id => person_id}, :remote => true, :class => 'add button'
end end
def remove_from_aspect_button(aspect_id, person_id) def remove_from_aspect_button(aspect_id, person_id)
link_to image_tag('icons/monotone_check_yes.png'), {:action => 'remove_from_aspect', :aspect_id => aspect_id, :person_id => person_id}, :remote => true, :class => 'added button' link_to image_tag('icons/monotone_check_yes.png'), {:controller => "aspects", :action => 'remove_from_aspect', :aspect_id => aspect_id, :person_id => person_id}, :remote => true, :class => 'added button'
end end
end end

View file

@ -10,7 +10,7 @@
= current_user.diaspora_handle = current_user.diaspora_handle
= info_text(t('.handle_explanation')) = info_text(t('.handle_explanation'))
.span-15.last .span-15
= render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count = render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count
= render 'shared/publisher', :aspect => @aspect = render 'shared/publisher', :aspect => @aspect
= render 'aspects/no_posts_message', :post_count => @posts.count, :contact_count => @contacts.count = render 'aspects/no_posts_message', :post_count => @posts.count, :contact_count => @contacts.count

View file

@ -16,7 +16,7 @@
= link_to t('.edit_aspect'), "#", :id => "edit_aspect_trigger" = link_to t('.edit_aspect'), "#", :id => "edit_aspect_trigger"
.span-8.append-1.last .span-8.append-1
= render 'shared/aspect_contacts', :contacts => @aspect_contacts, :aspect => @aspect = render 'shared/aspect_contacts', :contacts => @aspect_contacts, :aspect => @aspect
.span-15.last .span-15.last

View file

@ -30,10 +30,14 @@
.span-13.last .span-13.last
%h1 %h1
= t('.tech_preview') = t('.alpha_software')
%h3 %h3
= t('.account_deletion') = t('.bugs_and_feedback')
%h3
= t('.risk') %h4
%span.brandon DIASPORA*
= t('.modern_browsers')
= image_tag('modern_browsers.png')

View file

@ -11,4 +11,4 @@
%p %p
\...#{t('.or_select_one')} \...#{t('.or_select_one')}
= link_to t('_photos'), person_photos_path(@person) = link_to t('_photos'), person_photos_path(@person)
\.

View file

@ -38,13 +38,17 @@
%li %li
%h3 #{t('.bio')} %h3 #{t('.bio')}
= person.profile.bio = person.profile.bio
%li %li
.span-4.last .span-4
%h3 #{t('.gender')} %h3 #{t('.gender')}
= person.profile.gender = person.profile.gender
.span-4.last .span-4.last
%h3 #{t('.born')} %h3 #{t('.born')}
= "#{time_ago_in_words(person.profile.birthday)} #{t('ago')}" if @person.profile.birthday = "#{time_ago_in_words(person.profile.birthday)} #{t('ago')}" if @person.profile.birthday
.clearfix
%br %br
%br %br
%br %br

View file

@ -23,6 +23,6 @@
= service.nickname = service.nickname
= link_to t('.disconnect'), service, :confirm => t('.really_disconnect', :service => service.provider), :method => :delete = link_to t('.disconnect'), service, :confirm => t('.really_disconnect', :service => service.provider), :method => :delete
%h4= link_to t('.connect_to_twitter'), "/auth/twitter" if SERVICES['twitter']['consumer_key']!= "" %h4= link_to image_tag('services/twitter_sign_in.png'), "/auth/twitter" if SERVICES['twitter']['consumer_key']!= ""
%h4= link_to t('.connect_to_facebook'), "/auth/facebook" if SERVICES['facebook']['app_id'] !="" %h4= link_to image_tag('services/facebook_sign_in.png'), "/auth/facebook" if SERVICES['facebook']['app_id'] !=""

View file

@ -47,6 +47,10 @@
$(this).parent().html(html); $(this).parent().html(html);
ContactList.refreshContactCount(); ContactList.refreshContactCount();
if( $(".contact_pictures")[0].childElementCount == 0 ) {
$("#no_contacts").fadeIn(200);
}
$(this).fadeTo(200,1); $(this).fadeTo(200,1);
}); });
@ -54,7 +58,6 @@
alert("#{t('.cannot_remove')}"); alert("#{t('.cannot_remove')}");
}); });
$('.add').live('ajax:loading', function(data, html, xhr) { $('.add').live('ajax:loading', function(data, html, xhr) {
$(this).fadeTo(200,0.4); $(this).fadeTo(200,0.4);
}); });
@ -66,10 +69,13 @@
$(this).parent().html(html); $(this).parent().html(html);
ContactList.refreshContactCount(); ContactList.refreshContactCount();
if( $("#no_contacts").is(':visible') ) {
$("#no_contacts").fadeOut(200);
}
$(this).fadeTo(200,1); $(this).fadeTo(200,1);
}); });
$('.added').live('mouseover', function(){ $('.added').live('mouseover', function(){
$(this).addClass("remove"); $(this).addClass("remove");
$(this).children("img").attr("src","/images/icons/monotone_close_exit_delete.png"); $(this).children("img").attr("src","/images/icons/monotone_close_exit_delete.png");

View file

@ -22,19 +22,19 @@
}); });
$("#content_creation_button").bind("click", function(evt){ $("#content_creation_button").bind("click", function(evt){
$("#publisher").find(".content_creation").show(); $("#publisher").removeClass("closed");
$("#publisher").find("textarea").focus(); $("#publisher").find("textarea").focus();
}); });
}); });
#publisher #publisher{:class=>("closed" if aspect == :all)}
- if aspect == :all - if aspect == :all
#content_creation_button #content_creation_button
= image_tag 'icons/monotone_chat_talk.png', :id => 'share_bubble' = image_tag 'icons/monotone_chat_talk.png', :id => 'share_bubble'
%h4 share across all of your aspects %h4 share across all of your aspects
.content_creation{:style=>("display:none;" if aspect == :all)} .content_creation
= form_for(StatusMessage.new, :remote => true) do |status| = form_for(StatusMessage.new, :remote => true) do |status|
%ul#photodropzone %ul#photodropzone
= status.error_messages = status.error_messages

View file

@ -22,9 +22,9 @@ en:
sign_in: 'Sign in' sign_in: 'Sign in'
have_a_problem: "Have a problem? Find an answer here" have_a_problem: "Have a problem? Find an answer here"
remember_me: "Remember me" remember_me: "Remember me"
tech_preview: "Important, please read: This is a technology preview; do not provide any private information." alpha_software: 'You are about to use alpha software.'
account_deletion: "Also, be advised that your account may be deleted until we move into a more stable development period." bugs_and_feedback: 'Be advised, you will experience bugs. We encourage you to use the Feedback button on the right hand side of your browser to report any hiccups! We will work as fast as we can to resolve any issues you report.'
risk: "USE AT YOUR OWN RISK!!!" modern_browsers: 'only supports modern browsers.'
signed_in: 'Signed in successfully.' signed_in: 'Signed in successfully.'
signed_out: 'Signed out successfully.' signed_out: 'Signed out successfully.'
passwords: passwords:
@ -86,4 +86,4 @@ en:
sign_up: 'Sign up' sign_up: 'Sign up'
forgot_your_password: 'Forgot your password?' forgot_your_password: 'Forgot your password?'
receive_confirmation: "Didn't receive confirmation instructions?" receive_confirmation: "Didn't receive confirmation instructions?"
receive_unlock: "Didn't receive unlock instructions?" receive_unlock: "Didn't receive unlock instructions?"

View file

@ -308,7 +308,7 @@ en:
your_bio: "Your bio" your_bio: "Your bio"
your_photo: "Your photo" your_photo: "Your photo"
update_profile: "Update Profile" update_profile: "Update Profile"
allow_search: "Allow for people to search for you" allow_search: "Allow for people to search for you within Diaspora"
profile_photo_upload: profile_photo_upload:
or_select_one: "or select one from your already existing" or_select_one: "or select one from your already existing"
update: update:

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -13,7 +13,7 @@ $(document).ready(function(){
$('#flash_notice, #flash_error, #flash_alert').animate({ $('#flash_notice, #flash_error, #flash_alert').animate({
top: 0 top: 0
}).delay(4000).animate({ }).delay(2000).animate({
top: -100 top: -100
}, $(this).remove()); }, $(this).remove());

View file

@ -829,6 +829,20 @@ label
:-moz-border-radius 5px :-moz-border-radius 5px
:border-radius 5px :border-radius 5px
&.closed
&:hover
:background
:color #fafafa
h4
:color #777
img
:opacity 0.7
.content_creation
:display none
form form
:position relative :position relative
:top 0 :top 0
@ -883,8 +897,6 @@ label
:top 15px :top 15px
:bottom 5px :bottom 5px
:position relative :position relative
:background
:color #eee
:margin :margin
:bottom -12px :bottom -12px

1575
spec/fixtures/users.yaml vendored

File diff suppressed because it is too large Load diff