From 67f8ec6faec6da2d4f8a2a6a6dd94ebcd8c43107 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 12 Jun 2018 11:01:25 +1000 Subject: [PATCH] Throw away now-unused lemonauth templates, since they've all been ported across to Jinja2 --- lemonauth/templates/lemonauth/indie.html | 70 ------------------- lemonauth/templates/lemonauth/login.html | 51 -------------- .../templates/lemonauth/tags/form_field.html | 6 -- lemonauth/templatetags/__init__.py | 0 lemonauth/templatetags/lemonauth_tags.py | 8 --- 5 files changed, 135 deletions(-) delete mode 100644 lemonauth/templates/lemonauth/indie.html delete mode 100644 lemonauth/templates/lemonauth/login.html delete mode 100644 lemonauth/templates/lemonauth/tags/form_field.html delete mode 100644 lemonauth/templatetags/__init__.py delete mode 100644 lemonauth/templatetags/lemonauth_tags.py diff --git a/lemonauth/templates/lemonauth/indie.html b/lemonauth/templates/lemonauth/indie.html deleted file mode 100644 index cfe6615..0000000 --- a/lemonauth/templates/lemonauth/indie.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends 'lemoncurry/layout.html' %} -{% load markdown static %} - -{% block styles %} - -{% endblock %} - -{% block main %} -
-
-

- {% if app %}{% endif %} - sign in to - {% if app %}{{ app.name | first }}{% endif %} - {% if app %}({% endif %}{{ params.client_id }}{% if app %}){% endif %}? - {% if verified %} - - - - {% else %} - - - - {% endif %} -

- -
-

do you want to confirm your identity, {{ me }}, with this app?

- {% if params.response_type == 'code' %} -

additionally, this app is requesting the following scopes - you can edit the scopes that will be granted to the app, if you wish

-
- {% for scope in scopes %} -
- - -
- {% endfor %} -
- {% endif %} -

you will be redirected to {{ redirect_uri }} after authorising this app

-
- - - - {% csrf_token %} - - - - {% if params.state %}{% endif %} - -
-
- - - -{% endblock %} -{% block foot %} - -{% endblock %} diff --git a/lemonauth/templates/lemonauth/login.html b/lemonauth/templates/lemonauth/login.html deleted file mode 100644 index 9297f27..0000000 --- a/lemonauth/templates/lemonauth/login.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends 'lemoncurry/layout.html' %} -{% load lemonauth_tags static %} - -{% block styles %} - -{% endblock %} - -{% block main %} -
- {% if form.errors %} -

- Uh oh! Your username and password didn't match. Please try again. -

- {% endif %} - - {% if next %} - {% if user.is_authenticated %} -

- Hang on! Your account doesn't have access to this page. To proceed, please log in to an account that does have access. -

- {% else %} -

- Oops! Please log in to see this page. -

- {% endif %} - {% endif %} - -
-
- {% form_field form.username %} - {% form_field form.password %} - {% form_field form.otp_token %} - -
- - -
-
- - - - {% csrf_token %} - -
-
-{% endblock %} diff --git a/lemonauth/templates/lemonauth/tags/form_field.html b/lemonauth/templates/lemonauth/tags/form_field.html deleted file mode 100644 index 2fa811f..0000000 --- a/lemonauth/templates/lemonauth/tags/form_field.html +++ /dev/null @@ -1,6 +0,0 @@ -
- - - {% if field.help_text %}

{{ field.help_text }}

{% endif %} -
diff --git a/lemonauth/templatetags/__init__.py b/lemonauth/templatetags/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/lemonauth/templatetags/lemonauth_tags.py b/lemonauth/templatetags/lemonauth_tags.py deleted file mode 100644 index 65a196d..0000000 --- a/lemonauth/templatetags/lemonauth_tags.py +++ /dev/null @@ -1,8 +0,0 @@ -from django import template - -register = template.Library() - - -@register.inclusion_tag('lemonauth/tags/form_field.html') -def form_field(field): - return {'field': field}