templates/bundles/SyliusShopBundle/Menu/_security.html.twig line 1

Open in your IDE?
  1. <div class="ui right stackable inverted menu">
  2. {% if is_granted('ROLE_USER') %}
  3. {# <div class="item">{{ 'sylius.ui.hello'|trans }} {{ app.user.customer.fullName }}!</div> #}
  4. <a href="{{ path('sylius_shop_account_dashboard') }}" class="item">{{ 'sylius.ui.my_account'|trans }}</a>
  5. <a href="{{ path('sylius_shop_logout') }}" id="logoutboutton" class="item sylius-logout-button">{{ 'sylius.ui.logout'|trans }}</a>
  6. {% else %}
  7. <a href="{{ path('sylius_shop_login') }}" class="item">{{ 'sylius.ui.login'|trans }}</a>
  8. <a href="{{ path('sylius_shop_register') }}" class="item">{{ 'sylius.ui.register'|trans }}</a>
  9. {% endif %}
  10. </div>