added tooltips to the service icons

This commit is contained in:
zhitomirskiyi 2011-03-23 14:13:54 -07:00
parent 363c5f4dae
commit 24db7a3b87
2 changed files with 6 additions and 2 deletions

View file

@ -5,6 +5,8 @@
:javascript :javascript
$(function() { $(function() {
$(".question_mark").tipsy({trigger: 'hover', gravity: 'w'}); $(".question_mark").tipsy({trigger: 'hover', gravity: 'w'});
$(".service_icon").tipsy({trigger: 'hover', gravity: 'w'});
$(".public_icon").tipsy({trigger: 'hover', gravity: 'w'});
}); });
#publisher{:class => ((aspect == :profile)? 'mention_popup' : nil )} #publisher{:class => ((aspect == :profile)? 'mention_popup' : nil )}
@ -43,13 +45,14 @@
.public_toggle .public_toggle
%span#publisher_service_icons %span#publisher_service_icons
= link_to (image_tag "icons/monotone_wrench_settings.png"), "#question_mark_pane", :class => 'question_mark', :rel => 'facebox', :title => t('shared.public_explain.manage') = t("shared.publisher.click_to_share_with")
- if aspect == :all || :profile - if aspect == :all || :profile
= status.hidden_field( :public) = status.hidden_field( :public)
= image_tag "icons/globe.png", :title => t('.public'), :class => 'public_icon dim', :width => 16, :height => 16 = image_tag "icons/globe.png", :title => t('.public'), :class => 'public_icon dim', :width => 16, :height => 16
- if current_user.services - if current_user.services
- for service in current_user.services - for service in current_user.services
= image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider, :class => "service_icon dim", :id =>"#{service.provider}" = image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider.titleize, :class => "service_icon dim", :id =>"#{service.provider}"
= link_to (image_tag "icons/monotone_wrench_settings.png"), "#question_mark_pane", :class => 'question_mark', :rel => 'facebox', :title => t('shared.public_explain.manage')
= status.submit t('.share'), :disable_with => t('.posting'), :class => 'button', :tabindex => 2 = status.submit t('.share'), :disable_with => t('.posting'), :class => 'button', :tabindex => 2
.facebox_content .facebox_content

View file

@ -526,6 +526,7 @@ en:
whats_on_your_mind: "what's on your mind?" whats_on_your_mind: "what's on your mind?"
publishing_to: "publishing to: " publishing_to: "publishing to: "
public: "Public" public: "Public"
click_to_share_with: "Click to share with: "
add_contact: add_contact:
enter_a_diaspora_username: "Enter a Diaspora username:" enter_a_diaspora_username: "Enter a Diaspora username:"
your_diaspora_username_is: "Your Diaspora username is: %{diaspora_handle}" your_diaspora_username_is: "Your Diaspora username is: %{diaspora_handle}"