{% extends "base.html" %} {% load i18n static socialprofile_tags %} {% block page_role %}id="sp-login-modal" data-role="dialog"{% endblock %} {% block content %}

{% trans 'Sign In' %}

{% if user.is_authenticated %}
{% trans 'You are logged in as' %} {{ user.username }}!
{% trans 'Logout' %}
{% endif %}
{% if available_backends %} {% for sublist in available_backends|social_backends %}
{% for name, backend in sublist %} {% associated backend %} {% if association %}
    {% if user.social_auth.all.count == 1 %} {% with only_connection=user.social_auth.all|first %}

    {{ only_connection.provider|social_provider_name }} {% trans "is your only means of authentication, it cannot be removed." %}

    {% endwith %}
  • {% trans "Add Social Connection" %}
  • {% else %} {% for user_social_auth in user.social_auth.all %}
    {% csrf_token %}
    {% endfor %}
  • {% trans "Add Social Connection" %}
  • {% endif %}
{% else %} {% include "socialprofile/includes/social_begin_form.html" with name=name backend=backend button_class="col-md-2 btn btn-default" next_url=next_url next_param=next_param %} {% endif %} {% endfor %}
{% endfor %}
{% else %}

{% trans "Third-party identity providers enable you to rely on a trusted external service to authenticate your identity!" %}
{% trans "We will never know and store your password anywhere!" %}

{% csrf_token %}{% if next_url and next_param %}{% endif %}
{% csrf_token %}{% if next_url and next_param %}{% endif %}
{% csrf_token %}{% if next_url and next_param %}{% endif %}
{% csrf_token %}{% if next_url and next_param %}{% endif %}
{% csrf_token %}{% if next_url and next_param %}{% endif %}
{% csrf_token %}{% if next_url and next_param %}{% endif %}

{% endif %}
{% endblock %} {% block javascript %} {% endblock %}