{% sw_extends '@Storefront/storefront/page/account/sidebar.html.twig' %}
{% block page_account_sidebar_footer %}
{% if context.customer %}
{% if not context.customer.guest %}
<div class="card-footer account-aside-footer">
{% block page_account_sidebar_logout %}
<a href="{{ path('frontend.account.logout.page') }}"
class="btn btn-secondary">
{{ "account.logout"|trans|sw_sanitize }}
</a>
{% endblock %}
</div>
{% else %}
<div class="card-footer account-aside-footer account-guest-abort">
{% block page_account_sidebar_guest_abort %}
<a href="{{ path('frontend.account.logout.page') }}"
data-account-guest-abort-button="true"
class="btn btn-secondary">
{{ "account.guestAbort"|trans|sw_sanitize }}
</a>
{% endblock %}
</div>
{% endif %}
{% endif %}
{% endblock %}