{% extends "oscar/communication/emails/base.html" %}
{% load i18n %}
{% load url_tags %}
{% block body %}
    <p>
        {% if alert.user and alert.user.get_short_name %}
            {% blocktrans with name=alert.user.get_short_name %}
                Dear {{ name }},
            {% endblocktrans %}
        {% else %}
            {% trans "Hello," %}
        {% endif %}
    </p>
    <p>
        {% absolute_url site.domain alert.product.get_absolute_url as url %}
        {% blocktrans with title=alert.product.get_title|safe url=url %}
            We are happy to inform you that our product '{{ title }}' is back in stock:
            {{ url }}
        {% endblocktrans %}
    </p>
    {% if hurry %}
        <p>
            {% blocktrans %}
                Beware that the amount of items in stock is limited. Be quick or someone might get there first.
            {% endblocktrans %}
        </p>
    {% endif %}
    <p>
        {% blocktrans %}
            With this email we have disabled your alert automatically and you will not
            receive any further email regarding this product.
        {% endblocktrans %}
    </p>
{% endblock %}
