Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ celerybeat.pid
# Environments
.env
.venv
myenv/
env/
venv/
ENV/
Expand Down
7 changes: 7 additions & 0 deletions djangosnippets/templates/allauth/layouts/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "base_user.html" %}

{% block content %}
{% block allauth_content %}
{% endblock %}
{% endblock %}

29 changes: 29 additions & 0 deletions djangosnippets/templates/socialaccount/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{% extends "socialaccount/base.html" %}
{% load i18n %}
{% load allauth %}

{% block head_title %}
{% trans "Sign In" %}
{% endblock head_title %}

{% block content_header %}
{% if process == "connect" %}
{% blocktrans with provider.name as provider %}Connect {{ provider }}{% endblocktrans %}
{% else %}
{% blocktrans with provider.name as provider %}Sign In Via {{ provider }}{% endblocktrans %}
{% endif %}
{% endblock %}

{% block content %}
{% if process == "connect" %}
<p>{% blocktrans with provider.name as provider %}You are about to connect a new third-party account from {{ provider }}.{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans with provider.name as provider %}You are about to sign in using a third-party account from {{ provider }}.{% endblocktrans %}</p>
{% endif %}

<form method="post" action="">
{% csrf_token %}
<button type="submit">{% trans "Continue" %}</button>
</form>
{% endblock content %}

15 changes: 15 additions & 0 deletions djangosnippets/templates/socialaccount/login_redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends "socialaccount/base.html" %}
{% load i18n allauth %}

{% block head_title %}{% translate "Sign In" %} | {{ provider }}{% endblock %}

{% block content %}
{% element p %}
<a href="{{ redirect_to }}">{% translate "Continue" %}</a>
{% endelement %}

<script>
window.location.href = "{{ redirect_to }}";
</script>
{% endblock %}