mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Adding distribution info to the About panel
This commit is contained in:
@@ -5,18 +5,6 @@
|
||||
.content{"data-section-content" => ""}
|
||||
%img.about.right{src: @distributor.promo_image.url(:large)}
|
||||
%p= @distributor.long_description.andand.html_safe
|
||||
|
||||
|
||||
.panel
|
||||
%p
|
||||
%strong E
|
||||
%a{href: "mailto:#{@distributor.email}"}= @distributor.email
|
||||
|
||||
- unless @distributor.website.blank?
|
||||
%strong W
|
||||
%a{href: @distributor.website}= @distributor.website
|
||||
|
||||
= [@distributor.address.address1, @distributor.address.address2].join ", "
|
||||
%br
|
||||
= @distributor.address.city
|
||||
= @distributor.address.state
|
||||
= @distributor.address.zipcode
|
||||
= @distributor.distributor_info.html_safe
|
||||
|
||||
18
app/views/shop/shop/_contact.html.haml
Normal file
18
app/views/shop/shop/_contact.html.haml
Normal file
@@ -0,0 +1,18 @@
|
||||
%section
|
||||
%p.title.avenir{"data-section-title" => ""}
|
||||
%a{href: "#contact"} Contact
|
||||
.content{"data-section-content" => ""}
|
||||
.panel
|
||||
%p
|
||||
%strong E
|
||||
%a{href: "mailto:#{@distributor.email}"}= @distributor.email
|
||||
|
||||
- unless @distributor.website.blank?
|
||||
%strong W
|
||||
%a{href: @distributor.website}= @distributor.website
|
||||
|
||||
= [@distributor.address.address1, @distributor.address.address2].join ", "
|
||||
%br
|
||||
= @distributor.address.city
|
||||
= @distributor.address.state
|
||||
= @distributor.address.zipcode
|
||||
@@ -21,12 +21,8 @@
|
||||
= render 'shop/shop/about_us'
|
||||
= render 'shop/shop/producers'
|
||||
= render 'shop/shop/groups'
|
||||
= render 'shop/shop/contact'
|
||||
|
||||
%section
|
||||
%p.title.avenir{"data-section-title" => ""}
|
||||
%a{href: "#contact"} Contact
|
||||
.content{"data-section-content" => ""}
|
||||
%p Contact
|
||||
|
||||
%products.row
|
||||
= render partial: "shop/shop/products"
|
||||
|
||||
Reference in New Issue
Block a user