{% extends "base.html.j2" %}
{% from "base.html.j2" import view_action %}

{% set confirm_url = "https://" ~ domain ~ "/confirm/" ~ token %}

{% block content %}
<p>Hello {{ user_name }}!</p>

<p>Welcome to crates.io. Please click the link below to verify your email address:</p>

<p><a href="{{ confirm_url | safe }}">{{ confirm_url | safe }}</a></p>

<p>Thank you!</p>
{% endblock %}

{%- block action %}
{{ view_action(confirm_url, "Confirm Verification", "Confirm your email address for crates.io") }}
{%- endblock %}
