{% if user.is_authenticated() %}
{% trans user_email=user.email %} You are now logged in as {{ user_email }}! {% endtrans %}
{% else %} {% with is_ajax=True, action=url('users.login_modal') %} {% include "users/login_form.html" %} {% endwith %} {% endif %}