Sha256: f493eae6be03d4e36ec09465fb5bced13732eb147cfc73a69fd3786377303da2
Contents?: true
Size: 1.94 KB
Versions: 2
Compression:
Stored size: 1.94 KB
Contents
- if share_url.present? %ul.share-buttons %li.share-buttons__item %p.share-buttons__title= t('workarea.storefront.shares.share_heading') %li.share-buttons__item = link_to "https://www.facebook.com/sharer/sharer.php?#{facebook_query_string(share_url)}", class: 'share-buttons__button', title: t('workarea.storefront.shares.share_on_facebook'), target: '_blank', data: { popup_button: '', analytics: share_analytics_data('facebook', share_url).to_json } do = inline_svg('workarea/storefront/icons/facebook.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color') %li.share-buttons__item = link_to "https://twitter.com/intent/tweet?#{twitter_query_string(share_url, message)}", class: 'share-buttons__button', title: t('workarea.storefront.shares.share_on_twitter'), target: '_blank', data: { popup_button: '', analytics: share_analytics_data('twitter', share_url).to_json } do = inline_svg('workarea/storefront/icons/twitter.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color') %li.share-buttons__item = link_to "https://pinterest.com/pin/create/button/?#{share_query_string(share_url, message, local_assigns[:image])}", class: 'share-buttons__button', title: t('workarea.storefront.shares.share_on_pinterest'), target: '_blank', data: { popup_button: '', analytics: share_analytics_data('pinterest', share_url).to_json } do = inline_svg('workarea/storefront/icons/pinterest.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color') - if message.present? %li.share-buttons__item = link_to new_share_path(url: share_url, title: message), class: 'share-buttons__button', rel: 'nofollow', title: t('workarea.storefront.shares.share_by_email'), data: { dialog_button: '', analytics: share_analytics_data('email', share_url).to_json } do = inline_svg('workarea/storefront/share/icons/email.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-one_theme-1.3.1 | app/views/workarea/storefront/shares/_share_buttons.html.haml |
workarea-one_theme-1.3.0 | app/views/workarea/storefront/shares/_share_buttons.html.haml |