mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Remove double-up on URL string for social icons
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
/ Will for all the things: please add logic to include this /only/ if data is available
|
||||
|
||||
.content#contact
|
||||
.panel
|
||||
.row
|
||||
.small-12.large-4.columns
|
||||
- if current_distributor.address.address1 || current_distributor.address.address2 || current_distributor.address.city || current_distributor.address.state || current_distributor.address.zipcode
|
||||
%div.modal-centered
|
||||
%h5.modal-header=current_distributor.name
|
||||
%div.center
|
||||
.header Address
|
||||
%strong=current_distributor.name
|
||||
%p
|
||||
= current_distributor.address.address1
|
||||
- unless current_distributor.address.address2.blank?
|
||||
@@ -19,22 +18,22 @@
|
||||
|
||||
.small-12.large-4.columns
|
||||
- if current_distributor.website || current_distributor.email
|
||||
%div.modal-centered
|
||||
%h5.modal-header Contact
|
||||
- unless current_distributor.website.blank?
|
||||
%p
|
||||
%div.center
|
||||
.header Contact
|
||||
%p
|
||||
- unless current_distributor.website.blank?
|
||||
%a{href: "http://#{current_distributor.website}", target: "_blank" }
|
||||
= current_distributor.website
|
||||
- unless current_distributor.email.blank?
|
||||
%p
|
||||
%br
|
||||
- unless current_distributor.email.blank?
|
||||
%a{href: current_distributor.email.reverse, mailto: true}
|
||||
%span.email
|
||||
= current_distributor.email.reverse
|
||||
|
||||
.small-12.large-4.columns
|
||||
- if current_distributor.twitter.present? || current_distributor.facebook.present? || current_distributor.linkedin.present? || current_distributor.instagram.present?
|
||||
%div.modal-centered
|
||||
%h5.modal-header Follow
|
||||
%div.center
|
||||
.header Follow
|
||||
%div.follow-icons
|
||||
- unless current_distributor.twitter.blank?
|
||||
%span
|
||||
@@ -45,16 +44,16 @@
|
||||
%span
|
||||
%a{href: "http://#{current_distributor.facebook}", target: "_blank" }
|
||||
%i.ofn-i_044-facebook
|
||||
= current_distributor.facebook
|
||||
/ = current_distributor.facebook
|
||||
|
||||
- unless current_distributor.linkedin.blank?
|
||||
%span
|
||||
%a{href: "http://#{current_distributor.linkedin}", target: "_blank" }
|
||||
%i.ofn-i_042-linkedin
|
||||
= current_distributor.linkedin
|
||||
/ = current_distributor.linkedin
|
||||
|
||||
- unless current_distributor.instagram.blank?
|
||||
%span
|
||||
%a{href: "http://instagram.com.#{current_distributor.instagram}", target: "_blank" }
|
||||
%i.ofn-i_043-instagram
|
||||
= current_distributor.instagram
|
||||
/ = current_distributor.instagram
|
||||
|
||||
Reference in New Issue
Block a user