mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
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:
commit
a60ce9182d
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue