Created
November 26, 2013 01:41
-
-
Save jaymiejones86/7652134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%ul.social-share | |
%li.text Share on: | |
%li | |
- summary = "#{@gallery.title} #{@gallery.gallery_type} #{@gallery.subtitle}" | |
- link = "http://www.facebook.com/sharer/sharer.php?s=100&p[url]=#{url_encode(request.url)}&p[images][0]=&p[title]=#{url_encode(@gallery.title)}&p[summary]=#{url_encode(summary)}" | |
= link_to link, target: "_blank" do | |
%i.icon-facebook | |
%li | |
- status = "#{@gallery.title} #{@gallery.gallery_type} #{@gallery.subtitle}" | |
- link = "http://twitter.com/home?status=#{url_encode(status)}" | |
= link_to link, target: "_blank" do | |
%i.icon-twitter | |
- if @gallery.gallery_images.size > 0 | |
%li | |
- summary = "#{@gallery.title} #{@gallery.gallery_type} #{@gallery.subtitle}" | |
- link = "http://www.pinterest.com/pin/create/button/?url=#{url_encode(request.url)}&media=#{url_encode("http://"+request.server_name+"/"[email protected]_images.first.pic.url)}&description=#{url_encode(summary)}" | |
= link_to link, target: "_blank", data: { "pin-do" => "buttonPin", "pin-config" => "above"} do | |
%i.icon-pinterest | |
%li | |
- summary = "#{@gallery.title} #{@gallery.gallery_type} #{@gallery.subtitle}" | |
- body = "Hey, check out the #{@gallery.title} #{@gallery.gallery_type} #{@gallery.subtitle} on Oscar Oscar Salons" | |
= mail_to 'yourfriendsemailaddress', subject: summary, body: body do | |
%i.icon-mail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment