custom/plugins/TwigelSportLabel/src/Resources/views/storefront/page/account/sidebar.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/account/sidebar.html.twig' %}
  2. {# Adding new account link print label #}
  3. {% block page_account_sidebar_link_orders %}
  4.     {{ parent() }}
  5.     {# Print label #}
  6.     {% block page_account_sidebar_link_twigel_print_label %}
  7.         {% if context.customer.id in config('TwigelSportLabel').config.allowedUsers %}
  8.             <a href="{{ path('twigel.print-label') }}?type={% if context.customer.id in config('TwigelSportLabel').config.privateUsers %}private{% elseif context.customer.id in config('TwigelSportLabel').config.commercialUsers %}commercial{% endif %}"
  9.                class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('twigel.print-label') %} is-active{% endif %}">
  10.                 {{ "twigel-print-label.sidebarMenuTitle"|trans }}
  11.             </a>
  12.         {% endif %}
  13.     {% endblock %}
  14. {% endblock %}