Sha256: 630c35e1e5bcf673453df9a9ee2bc3b45761ea6461e52c7b19e1bfb159f81356

Contents?: true

Size: 1.56 KB

Versions: 7

Compression:

Stored size: 1.56 KB

Contents

= stylesheet_link_tag('rad_social/rad_screen')
= javascript_include_tag("lib/rad_social/rad_widget")
- local_variables = defined?(locals) ? locals : local_assigns
- url = local_variables[:url]
- message = local_variables[:message]
- email_action_url = local_variables[:email_action_url]
- email_subject = local_variables[:email_subject]
- email_message = local_variables[:email_message]

.rad-widget
  .rad-icon
    %a{:class => "rad-popup-window rad-facebook", :href => "https://www.facebook.com/sharer/sharer.php?u=#{CGI::escape(url)}", :target=> "_blank"}
      %img{:src => image_path("rad_social/facebook.png"), :alt => "Facebook", :title => "Share to Facebook", :height => "26", :width => "26"}
  .rad-icon
    %a{:class => "rad-popup-window rad-twitter", :href => "https://twitter.com/intent/tweet?text=#{CGI::escape(message + " " + url)}"}
      %img{:src => image_path("rad_social/twitter.png"), :alt => "Twitter", :title => "Share to Twitter", :height => "26", :width => "26"}
  .rad-icon
    %a{:class => "rad-popup-window rad-email", :href => rad_social_mail_form_url(:email_subject => email_subject, :email_message => email_message, :email_action_url => email_action_url)}
      %img{:src => image_path("rad_social/email.png"), :alt => "Email a Friend", :title => "Email a Friend", :height => "26", :width => "26"}
  .rad-icon
    %a{:class => "rad-popup-window rad-gplus", :href => "https://plus.google.com/share?url=#{CGI::escape(url)}"}
      %img{:src => image_path("rad_social/googleplus.png"), :alt => "Google+", :title => "Share to Google+", :height => "26", :width => "26"}



Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trusty-rad-social-extension-2.0.2 app/views/widget/_horizontal_widget.html.haml
trusty-rad-social-extension-2.0.1 app/views/widget/_horizontal_widget.html.haml
trusty-rad-social-extension-2.0.0.pre.beta app/views/widget/_horizontal_widget.html.haml
trusty-rad-social-extension-1.1.4 app/views/widget/_horizontal_widget.html.haml
trusty-rad-social-extension-1.1.3 app/views/widget/_horizontal_widget.html.haml
trusty-rad-social-extension-1.1.2 app/views/widget/_horizontal_widget.html.haml
trusty-rad-social-extension-1.1.1 app/views/widget/_horizontal_widget.html.haml