From 573f7b1087f485f607cfd98815fcbdea60462114 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Thu, 18 Jun 2020 19:55:06 -0300 Subject: [PATCH] make shop links on the producers page open in new tab --- app/views/producers/_fat.html.haml | 4 ++-- app/views/producers/_skinny.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/producers/_fat.html.haml b/app/views/producers/_fat.html.haml index 9b4e3b68b6..7712d43629 100644 --- a/app/views/producers/_fat.html.haml +++ b/app/views/producers/_fat.html.haml @@ -79,8 +79,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" => "{{ embedded_layout ? '_blank' : undefined }}", - "ng-class" => "::{primary: hub.active, secondary: !hub.active}"} + "ng-href" => "{{::hub.path}}", "ng-attr-target" => "_blank", + "ng-class" => "::{primary: hub.active, secondary: !hub.active}", "target" => "_blank"} %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"} diff --git a/app/views/producers/_skinny.html.haml b/app/views/producers/_skinny.html.haml index 6e05619d07..8664537362 100644 --- a/app/views/producers/_skinny.html.haml +++ b/app/views/producers/_skinny.html.haml @@ -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" => "{{ embedded_layout ? '_blank' : undefined}}", "data-is-link" => "true"} + %a.is_distributor{"ng-href" => "{{::producer.path}}", "ng-attr-target" => "_blank", "data-is-link" => "true", "target" => "_blank"} %i{ng: {class: "::producer.producer_icon_font"}} %span.margin-top %strong{"ng-bind" => "::producer.name"}