mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Using ngSrc correctly in frontend
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
-# / TODO: Rob - need popover, use will's directive or this? http://pineconellc.github.io/angular-foundation/
|
||||
-#
|
||||
.about-container.pad-top
|
||||
%img.enterprise-logo{"ng-src" => "::enterprise.logo", "ng-if" => "::enterprise.logo"}
|
||||
%img.enterprise-logo{"ng-src" => "{{::enterprise.logo}}", "ng-if" => "::enterprise.logo"}
|
||||
%p.text-small{"ng-bind-html" => "::enterprise.long_description"}
|
||||
.small-12.large-4.columns
|
||||
%ng-include{src: "'partials/contact.html'"}
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
%span{"ng-bind" => "::enterprise.name"}
|
||||
.small-12.medium-5.large-4.columns.text-right.small-only-text-left
|
||||
%p{"ng-bind" => "::[enterprise.address.city, enterprise.address.state_name] | printArray"}
|
||||
%img.hero-img{"ng-src" => "::enterprise.promo_image"}
|
||||
%img.hero-img{"ng-src" => "{{::enterprise.promo_image}}"}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.product-thumb
|
||||
%a{"ng-click" => "triggerProductModal()"}
|
||||
%i.ofn-i_057-expand
|
||||
%img{"ng-src" => "::product.primaryImageOrMissing", "ng-click" => "triggerProductModal()"}
|
||||
%img{"ng-src" => "{{::product.primaryImageOrMissing}}", "ng-click" => "triggerProductModal()"}
|
||||
|
||||
.row.summary
|
||||
.small-10.medium-10.large-11.columns.summary-header
|
||||
|
||||
Reference in New Issue
Block a user