{% extends '@SyliusShop/Email/layout.html.twig' %}

{% block subject %}
    {{ 'sylius.email.verification_token.subject'|trans({}, null, localeCode) }}
{% endblock %}

{% block content %}
    {% set url = channel.hostname is not null ? 'http://' ~ channel.hostname ~ path('sylius_shop_user_verification', { 'token': user.emailVerificationToken}) : url('sylius_shop_user_verification', { 'token': user.emailVerificationToken}) %}

    <div style="text-align: center; margin-bottom: 30px;">
        <div style="font-size: 24px;">
            {{ 'sylius.email.verification_token.hello'|trans({}, null, localeCode) }} <strong>{{ user.username }}</strong><br>
        </div>
        {{ 'sylius.email.verification_token.to_verify_your_email_address'|trans({}, null, localeCode) }}:
    </div>

    <div style="text-align: center;">
        <a href="{{ url|raw }}" class="btn">
            {{ 'sylius.email.verification_token.verify_your_email_address'|trans({}, null, localeCode) }}
        </a>
    </div>
{% endblock %}
