vendor/sylius/sylius/src/Sylius/Bundle/AdminBundle/Resources/views/Layout/_channelLinks.html.twig line 1

Open in your IDE?
  1. {% if channels|length > 1 %}
  2.     <div class="ui simple dropdown item">
  3.         <span>
  4.             {{ 'sylius.ui.view_your_store'|trans }}
  5.         </span>
  6.         <i class="dropdown icon"></i>
  7.         <div class="menu">
  8.             {% for channel in channels|filter(channel => channel.hostname is not empty) %}
  9.             <a href="http://{{ channel.hostname }}" target="_blank" class="item">
  10.                 {% include '@SyliusAdmin/Common/_channel.html.twig' %}
  11.             </a>
  12.             {% endfor %}
  13.         </div>
  14.     </div>
  15. {% elseif channels|length == 1 %}
  16.     {% set channel = channels|first %}
  17.     {% if channel.hostname is not empty %}
  18.     <a href="http://{{ channel.hostname }}" target="_blank" class="item">{{ 'sylius.ui.view_your_store'|trans }}</a>
  19.     {% endif %}
  20. {% endif %}