{% extends "base.html" %} {% load i18n %} {% load extra_tags %} {% load smart_if %} {% block title %}{% spaceless %}{% trans "User login" %}{% endspaceless %}{% endblock %} {% block forejs %} {% endblock %} {% block content %}

{{page_title}}

{% if answer %}
{% blocktrans with answer.question.title as title and answer.summary as summary %} Your answer to {{title}} {{summary}} will be posted once you log in {% endblocktrans %}
{% endif %} {% if question %}
{% blocktrans with question.title as title and question.summary as summary %}Your question {{title}} {{summary}} will be posted once you log in {% endblocktrans %}
{% endif %}

{% if view_subtype == 'default' %} {% trans "Take a pick of your favorite service below to sign in using secure OpenID or similar technology. Your external service password always stays confidential and you don't have to rememeber or create another one." %} {% endif %} {% if view_subtype == 'add_openid' %} {% if existing_login_methods %} {% trans "It's a good idea to make sure that your existing login methods still work, or add a new one. Please click any of the icons below to check/change or add new login methods." %} {% else %} {% trans "Please add a more permanent login method by clicking one of the icons below, to avoid logging in via email each time." %} {% endif %} {% endif %} {% if view_subtype == 'change_openid' %} {% if existing_login_methods %} {% trans "Click on one of the icons below to add a new login method or re-validate an existing one." %} {% else %} {% trans "You don't have a method to log in right now, please add one or more by clicking any of the icons below." %} {% endif %} {% endif %} {% if view_subtype == 'email_sent' %} {% trans "Please check your email and visit the enclosed link to re-connect to your account" %} {% endif %}

{% if openid_error_message %}

{{ openid_error_message }}

{% endif %} {% if view_subtype != 'email_sent' and view_subtype != 'bad_key' %}
{{login_form.login_provider_name}}
{{ login_form.next }} {% if settings.RECAPTCHA_KEY and settings.RECAPTCHA_SECRET %} {% endif %}
{% if user.is_authenticated and existing_login_methods %} {% endif %} {% endif %} {% if view_subtype != 'email_sent' or view_subtype == 'bad_key' %} {% if user.is_anonymous %}
{% if view_subtype != 'bad_key' %}

{% trans "Still have trouble signing in?" %}

{% endif %}

{% if view_subtype == 'bad_key' %} {% trans "Please, enter your email address below and obtain a new key" %} {% else %} {% trans "Please, enter your email address below to recover your account" %} {% endif %}

{% if account_recovery_form.email.errors %}

{{account_recovery_form.email.errors.0}}

{% endif %} {{ account_recovery_form.email }}
{% endif %} {% endif %} {% endblock %} {% block sidebar %}

{% trans "Why use OpenID?" %}

{% if settings.FACEBOOK_KEY and settings.FACEBOOK_SECRET %}
{% endif %} {% endblock%}