minor #11194 Opening show in the store in new tab from admin (antonioperic)

This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.6 or master <!-- see the comment below -->
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file -->
| License         | MIT

This is just a small UX improvement, it is much better to open the preview in new tab


Commits
-------

a8e8414605 Opening show in the store in new tab from admin
This commit is contained in:
Łukasz Chruściel 2020-03-09 15:17:08 +01:00 committed by GitHub
commit a60ce9182d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@
<div class="scrolling menu">
{% for channel in enabledChannels %}
{% set url = channel.hostname is not null ? 'http://' ~ channel.hostname ~ path('sylius_shop_product_show', {'slug': product.slug, '_locale': channel.defaultLocale.code}) : url('sylius_shop_product_show', {'slug': product.slug, '_locale': channel.defaultLocale.code}) %}
<a href="{{ url|raw }}" class="item">
<a href="{{ url|raw }}" class="item" target="_blank">
<i class="angle right icon"></i>
{{ 'sylius.ui.show_in'|trans }}
{{ channel.name }} ({{ channel.code }})
@ -28,7 +28,7 @@
{% else %}
{% for channel in enabledChannels %}
{% set url = channel.hostname is not null ? 'http://' ~ channel.hostname ~ path('sylius_shop_product_show', {'slug': product.slug, '_locale': channel.defaultLocale.code}) : url('sylius_shop_product_show', {'slug': product.slug, '_locale': channel.defaultLocale.code}) %}
<a class="ui labeled icon button" href="{{ url|raw }}">
<a class="ui labeled icon button" href="{{ url|raw }}" target="_blank">
<i class="angle right icon"></i>
{{ 'sylius.ui.show_product_in_shop_page'|trans }}
</a>