Skip to content

Commit

Permalink
Merge pull request #5770 from openfoodfoundation/revert-5601-enhancem…
Browse files Browse the repository at this point in the history
…ent/5454-links-to-shops-in-new-tabs

Revert "Enhancement/5454 make links to shops under Groups > Producers open in new tab"
  • Loading branch information
luisramos0 authored Aug 5, 2020
2 parents 6cc2969 + efacca6 commit d8acf90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/producers/_fat.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
.row.cta-container
.columns.small-12
%a.cta-hub{"ng-repeat" => "hub in producer.hubs | orderBy:'-active'",
"ng-href" => "{{::hub.path}}", "ng-attr-target" => "_blank",
"ng-class" => "::{primary: hub.active, secondary: !hub.active}", "target" => "_blank"}
"ng-href" => "{{::hub.path}}", "ng-attr-target" => "{{ embedded_layout ? '_blank' : undefined }}",
"ng-class" => "::{primary: hub.active, secondary: !hub.active}"}
%i.ofn-i_068-shop-reversed{"ng-if" => "::hub.active"}
%i.ofn-i_068-shop-reversed{"ng-if" => "::!hub.active"}
.hub-name{"ng-bind" => "::hub.name"}
Expand Down
2 changes: 1 addition & 1 deletion app/views/producers/_skinny.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%span{"ng-if" => "::producer.is_distributor" }
.row.vertical-align-middle
.columns.small-12
%a.is_distributor{"ng-href" => "{{::producer.path}}", "ng-attr-target" => "_blank", "data-is-link" => "true", "target" => "_blank"}
%a.is_distributor{"ng-href" => "{{::producer.path}}", "ng-attr-target" => "{{ embedded_layout ? '_blank' : undefined}}", "data-is-link" => "true"}
%i{ng: {class: "::producer.producer_icon_font"}}
%span.margin-top
%strong{"ng-bind" => "::producer.name"}
Expand Down

0 comments on commit d8acf90

Please sign in to comment.