From 91b99c35c52b76963f1d728269d8934e4b136ad3 Mon Sep 17 00:00:00 2001 From: Alexander-D-Karpov Date: Sun, 6 Nov 2022 23:10:08 +0300 Subject: [PATCH] removed unused templates --- image_markuper/templates/403.html | 9 -- image_markuper/templates/404.html | 9 -- image_markuper/templates/500.html | 11 -- .../templates/account/account_inactive.html | 11 -- image_markuper/templates/account/base.html | 10 -- image_markuper/templates/account/email.html | 78 ------------ .../templates/account/email_confirm.html | 31 ----- image_markuper/templates/account/login.html | 59 --------- image_markuper/templates/account/logout.html | 19 --- .../templates/account/password_change.html | 16 --- .../templates/account/password_reset.html | 25 ---- .../account/password_reset_done.html | 16 --- .../account/password_reset_from_key.html | 24 ---- .../account/password_reset_from_key_done.html | 9 -- .../templates/account/password_set.html | 16 --- image_markuper/templates/account/signup.html | 22 ---- .../templates/account/signup_closed.html | 11 -- .../templates/account/verification_sent.html | 12 -- .../account/verified_email_required.html | 21 ---- image_markuper/templates/base.html | 112 ------------------ image_markuper/templates/pages/about.html | 1 - image_markuper/templates/pages/home.html | 1 - .../templates/users/user_detail.html | 34 ------ image_markuper/templates/users/user_form.html | 17 --- 24 files changed, 574 deletions(-) delete mode 100644 image_markuper/templates/403.html delete mode 100644 image_markuper/templates/404.html delete mode 100644 image_markuper/templates/500.html delete mode 100644 image_markuper/templates/account/account_inactive.html delete mode 100644 image_markuper/templates/account/base.html delete mode 100644 image_markuper/templates/account/email.html delete mode 100644 image_markuper/templates/account/email_confirm.html delete mode 100644 image_markuper/templates/account/login.html delete mode 100644 image_markuper/templates/account/logout.html delete mode 100644 image_markuper/templates/account/password_change.html delete mode 100644 image_markuper/templates/account/password_reset.html delete mode 100644 image_markuper/templates/account/password_reset_done.html delete mode 100644 image_markuper/templates/account/password_reset_from_key.html delete mode 100644 image_markuper/templates/account/password_reset_from_key_done.html delete mode 100644 image_markuper/templates/account/password_set.html delete mode 100644 image_markuper/templates/account/signup.html delete mode 100644 image_markuper/templates/account/signup_closed.html delete mode 100644 image_markuper/templates/account/verification_sent.html delete mode 100644 image_markuper/templates/account/verified_email_required.html delete mode 100644 image_markuper/templates/base.html delete mode 100644 image_markuper/templates/pages/about.html delete mode 100644 image_markuper/templates/pages/home.html delete mode 100644 image_markuper/templates/users/user_detail.html delete mode 100644 image_markuper/templates/users/user_form.html diff --git a/image_markuper/templates/403.html b/image_markuper/templates/403.html deleted file mode 100644 index 4356d93..0000000 --- a/image_markuper/templates/403.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Forbidden (403){% endblock %} - -{% block content %} -

Forbidden (403)

- -

{% if exception %}{{ exception }}{% else %}You're not allowed to access this page.{% endif %}

-{% endblock content %} diff --git a/image_markuper/templates/404.html b/image_markuper/templates/404.html deleted file mode 100644 index 31c0f2b..0000000 --- a/image_markuper/templates/404.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Page not found{% endblock %} - -{% block content %} -

Page not found

- -

{% if exception %}{{ exception }}{% else %}This is not the page you were looking for.{% endif %}

-{% endblock content %} diff --git a/image_markuper/templates/500.html b/image_markuper/templates/500.html deleted file mode 100644 index 46e43a9..0000000 --- a/image_markuper/templates/500.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Server Error{% endblock %} - -{% block content %} -

Ooops!!! 500

- -

Looks like something went wrong!

- -

We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.

-{% endblock content %} diff --git a/image_markuper/templates/account/account_inactive.html b/image_markuper/templates/account/account_inactive.html deleted file mode 100644 index 07175e4..0000000 --- a/image_markuper/templates/account/account_inactive.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} - -{% block head_title %}{% translate "Account Inactive" %}{% endblock %} - -{% block inner %} -

{% translate "Account Inactive" %}

- -

{% translate "This account is inactive." %}

-{% endblock %} diff --git a/image_markuper/templates/account/base.html b/image_markuper/templates/account/base.html deleted file mode 100644 index 8e1f260..0000000 --- a/image_markuper/templates/account/base.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} -{% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %} - -{% block content %} -
-
- {% block inner %}{% endblock %} -
-
-{% endblock %} diff --git a/image_markuper/templates/account/email.html b/image_markuper/templates/account/email.html deleted file mode 100644 index f7fa9b2..0000000 --- a/image_markuper/templates/account/email.html +++ /dev/null @@ -1,78 +0,0 @@ - -{% extends "account/base.html" %} - -{% load i18n %} -{% load crispy_forms_tags %} - -{% block head_title %}{% translate "Account" %}{% endblock %} - -{% block inner %} -

{% translate "E-mail Addresses" %}

- -{% if user.emailaddress_set.all %} -

{% translate 'The following e-mail addresses are associated with your account:' %}

- -
-{% csrf_token %} -
- - {% for emailaddress in user.emailaddress_set.all %} -
- -
- {% endfor %} - -
- - - -
- -
-
- -{% else %} -

{% translate 'Warning:'%} {% translate "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}

- -{% endif %} - - -

{% translate "Add E-mail Address" %}

- -
- {% csrf_token %} - {{ form|crispy }} - -
- -{% endblock %} - - -{% block inline_javascript %} -{{ block.super }} - -{% endblock %} diff --git a/image_markuper/templates/account/email_confirm.html b/image_markuper/templates/account/email_confirm.html deleted file mode 100644 index 525c0f3..0000000 --- a/image_markuper/templates/account/email_confirm.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load account %} - -{% block head_title %}{% translate "Confirm E-mail Address" %}{% endblock %} - - -{% block inner %} -

{% translate "Confirm E-mail Address" %}

- -{% if confirmation %} - -{% user_display confirmation.email_address.user as user_display %} - -

{% blocktranslate with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktranslate %}

- -
-{% csrf_token %} - -
- -{% else %} - -{% url 'account_email' as email_url %} - -

{% blocktranslate %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktranslate %}

- -{% endif %} - -{% endblock %} diff --git a/image_markuper/templates/account/login.html b/image_markuper/templates/account/login.html deleted file mode 100644 index 838ed11..0000000 --- a/image_markuper/templates/account/login.html +++ /dev/null @@ -1,59 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load account socialaccount %} -{% load crispy_forms_tags %} - -{% block head_title %}{% translate "Sign In" %}{% endblock %} - -{% block inner %} - -

{% translate "Sign In" %}

- -{% get_providers as socialaccount_providers %} - -{% if socialaccount_providers %} -

- {% translate "Please sign in with one of your existing third party accounts:" %} - {% if ACCOUNT_ALLOW_REGISTRATION %} - {% blocktranslate trimmed %} - Or, sign up - for a {{ site_name }} account and sign in below: - {% endblocktranslate %} - {% endif %} -

- -
- - - - - -
- - {% include "socialaccount/snippets/login_extra.html" %} - -{% else %} - {% if ACCOUNT_ALLOW_REGISTRATION %} -

- {% blocktranslate trimmed %} - If you have not created an account yet, then please - sign up first. - {% endblocktranslate %} -

- {% endif %} -{% endif %} - -
- {% csrf_token %} - {{ form|crispy }} - {% if redirect_field_value %} - - {% endif %} - {% translate "Forgot Password?" %} - -
- -{% endblock %} diff --git a/image_markuper/templates/account/logout.html b/image_markuper/templates/account/logout.html deleted file mode 100644 index d41824e..0000000 --- a/image_markuper/templates/account/logout.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} - -{% block head_title %}{% translate "Sign Out" %}{% endblock %} - -{% block inner %} -

{% translate "Sign Out" %}

- -

{% translate 'Are you sure you want to sign out?' %}

- -
- {% csrf_token %} - {% if redirect_field_value %} - - {% endif %} - -
-{% endblock %} diff --git a/image_markuper/templates/account/password_change.html b/image_markuper/templates/account/password_change.html deleted file mode 100644 index 5182a7a..0000000 --- a/image_markuper/templates/account/password_change.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load crispy_forms_tags %} - -{% block head_title %}{% translate "Change Password" %}{% endblock %} - -{% block inner %} -

{% translate "Change Password" %}

- -
- {% csrf_token %} - {{ form|crispy }} - -
-{% endblock %} diff --git a/image_markuper/templates/account/password_reset.html b/image_markuper/templates/account/password_reset.html deleted file mode 100644 index 8a2b7a5..0000000 --- a/image_markuper/templates/account/password_reset.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load account %} -{% load crispy_forms_tags %} - -{% block head_title %}{% translate "Password Reset" %}{% endblock %} - -{% block inner %} - -

{% translate "Password Reset" %}

- {% if user.is_authenticated %} - {% include "account/snippets/already_logged_in.html" %} - {% endif %} - -

{% translate "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}

- -
- {% csrf_token %} - {{ form|crispy }} - -
- -

{% blocktranslate %}Please contact us if you have any trouble resetting your password.{% endblocktranslate %}

-{% endblock %} diff --git a/image_markuper/templates/account/password_reset_done.html b/image_markuper/templates/account/password_reset_done.html deleted file mode 100644 index f682ee8..0000000 --- a/image_markuper/templates/account/password_reset_done.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load account %} - -{% block head_title %}{% translate "Password Reset" %}{% endblock %} - -{% block inner %} -

{% translate "Password Reset" %}

- - {% if user.is_authenticated %} - {% include "account/snippets/already_logged_in.html" %} - {% endif %} - -

{% blocktranslate %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktranslate %}

-{% endblock %} diff --git a/image_markuper/templates/account/password_reset_from_key.html b/image_markuper/templates/account/password_reset_from_key.html deleted file mode 100644 index dd836b4..0000000 --- a/image_markuper/templates/account/password_reset_from_key.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load crispy_forms_tags %} -{% block head_title %}{% translate "Change Password" %}{% endblock %} - -{% block inner %} -

{% if token_fail %}{% translate "Bad Token" %}{% else %}{% translate "Change Password" %}{% endif %}

- - {% if token_fail %} - {% url 'account_reset_password' as passwd_reset_url %} -

{% blocktranslate %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktranslate %}

- {% else %} - {% if form %} -
- {% csrf_token %} - {{ form|crispy }} - -
- {% else %} -

{% translate 'Your password is now changed.' %}

- {% endif %} - {% endif %} -{% endblock %} diff --git a/image_markuper/templates/account/password_reset_from_key_done.html b/image_markuper/templates/account/password_reset_from_key_done.html deleted file mode 100644 index 7a58b44..0000000 --- a/image_markuper/templates/account/password_reset_from_key_done.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% block head_title %}{% translate "Change Password" %}{% endblock %} - -{% block inner %} -

{% translate "Change Password" %}

-

{% translate 'Your password is now changed.' %}

-{% endblock %} diff --git a/image_markuper/templates/account/password_set.html b/image_markuper/templates/account/password_set.html deleted file mode 100644 index a748eb9..0000000 --- a/image_markuper/templates/account/password_set.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load crispy_forms_tags %} - -{% block head_title %}{% translate "Set Password" %}{% endblock %} - -{% block inner %} -

{% translate "Set Password" %}

- -
- {% csrf_token %} - {{ form|crispy }} - -
-{% endblock %} diff --git a/image_markuper/templates/account/signup.html b/image_markuper/templates/account/signup.html deleted file mode 100644 index 189ab9e..0000000 --- a/image_markuper/templates/account/signup.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} -{% load crispy_forms_tags %} - -{% block head_title %}{% translate "Signup" %}{% endblock %} - -{% block inner %} -

{% translate "Sign Up" %}

- -

{% blocktranslate %}Already have an account? Then please sign in.{% endblocktranslate %}

- -
- {% csrf_token %} - {{ form|crispy }} - {% if redirect_field_value %} - - {% endif %} - -
- -{% endblock %} diff --git a/image_markuper/templates/account/signup_closed.html b/image_markuper/templates/account/signup_closed.html deleted file mode 100644 index fcea1f0..0000000 --- a/image_markuper/templates/account/signup_closed.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} - -{% block head_title %}{% translate "Sign Up Closed" %}{% endblock %} - -{% block inner %} -

{% translate "Sign Up Closed" %}

- -

{% translate "We are sorry, but the sign up is currently closed." %}

-{% endblock %} diff --git a/image_markuper/templates/account/verification_sent.html b/image_markuper/templates/account/verification_sent.html deleted file mode 100644 index acf81be..0000000 --- a/image_markuper/templates/account/verification_sent.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} - -{% block head_title %}{% translate "Verify Your E-mail Address" %}{% endblock %} - -{% block inner %} -

{% translate "Verify Your E-mail Address" %}

- -

{% blocktranslate %}We have sent an e-mail to you for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.{% endblocktranslate %}

- -{% endblock %} diff --git a/image_markuper/templates/account/verified_email_required.html b/image_markuper/templates/account/verified_email_required.html deleted file mode 100644 index beefcea..0000000 --- a/image_markuper/templates/account/verified_email_required.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "account/base.html" %} - -{% load i18n %} - -{% block head_title %}{% translate "Verify Your E-mail Address" %}{% endblock %} - -{% block inner %} -

{% translate "Verify Your E-mail Address" %}

- -{% url 'account_email' as email_url %} - -

{% blocktranslate %}This part of the site requires us to verify that -you are who you claim to be. For this purpose, we require that you -verify ownership of your e-mail address. {% endblocktranslate %}

- -

{% blocktranslate %}We have sent an e-mail to you for -verification. Please click on the link inside this e-mail. Please -contact us if you do not receive it within a few minutes.{% endblocktranslate %}

- -

{% blocktranslate %}Note: you can still change your e-mail address.{% endblocktranslate %}

-{% endblock %} diff --git a/image_markuper/templates/base.html b/image_markuper/templates/base.html deleted file mode 100644 index 6d6a50d..0000000 --- a/image_markuper/templates/base.html +++ /dev/null @@ -1,112 +0,0 @@ -{% load static i18n %} -{% get_current_language as LANGUAGE_CODE %} - - - - - {% block title %}Image markuper{% endblock title %} - - - - - - - {% block css %} - - - - - - - {% endblock %} - - {# Placed at the top of the document so pages load faster with defer #} - {% block javascript %} - - - - - - - - {% endblock javascript %} - - - - - -
- - -
- -
- - {% if messages %} - {% for message in messages %} -
- {{ message }} - -
- {% endfor %} - {% endif %} - - {% block content %} -

Use this document as a way to quick start any new project.

- {% endblock content %} - -
- - {% block modal %}{% endblock modal %} - - {% block inline_javascript %} - {% comment %} - Script tags with only code, no src (defer by default). To run - with a "defer" so that you run inline code: - - {% endcomment %} - {% endblock inline_javascript %} - - diff --git a/image_markuper/templates/pages/about.html b/image_markuper/templates/pages/about.html deleted file mode 100644 index 94d9808..0000000 --- a/image_markuper/templates/pages/about.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "base.html" %} diff --git a/image_markuper/templates/pages/home.html b/image_markuper/templates/pages/home.html deleted file mode 100644 index 94d9808..0000000 --- a/image_markuper/templates/pages/home.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "base.html" %} diff --git a/image_markuper/templates/users/user_detail.html b/image_markuper/templates/users/user_detail.html deleted file mode 100644 index 79b8233..0000000 --- a/image_markuper/templates/users/user_detail.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "base.html" %} -{% load static %} - -{% block title %}User: {{ object.username }}{% endblock %} - -{% block content %} -
- -
-
- -

{{ object.username }}

- {% if object.name %} -

{{ object.name }}

- {% endif %} -
-
- -{% if object == request.user %} - -
- -
- My Info - E-Mail - -
- -
- -{% endif %} - -
-{% endblock content %} diff --git a/image_markuper/templates/users/user_form.html b/image_markuper/templates/users/user_form.html deleted file mode 100644 index 467357a..0000000 --- a/image_markuper/templates/users/user_form.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "base.html" %} -{% load crispy_forms_tags %} - -{% block title %}{{ user.username }}{% endblock %} - -{% block content %} -

{{ user.username }}

-
- {% csrf_token %} - {{ form|crispy }} -
-
- -
-
-
-{% endblock %}