diff --git a/theme/__init__.py b/theme/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/theme/locale/fr/LC_MESSAGES/django.po b/theme/locale/fr/LC_MESSAGES/django.po deleted file mode 100644 index 85838d8b..00000000 --- a/theme/locale/fr/LC_MESSAGES/django.po +++ /dev/null @@ -1,79 +0,0 @@ -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-17 13:33+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: templates/admin/base_site.html:22 -msgid "Welcome," -msgstr "" - -#: templates/admin/base_site.html:27 -msgid "Transfer" -msgstr "Virement" - -#: templates/admin/base_site.html:32 templates/admin/base_site.html:51 -msgid "View admin" -msgstr "Administration" - -#: templates/admin/base_site.html:44 -msgid "Documentation" -msgstr "" - -#: templates/admin/base_site.html:53 -msgid "Log out" -msgstr "" - -#: templates/registration/logged_out.html:9 -#: templates/registration/password_change_done.html:9 -#: templates/registration/password_change_form.html:9 -#: templates/registration/password_reset_complete.html:9 -#: templates/registration/password_reset_confirm.html:9 -#: templates/registration/password_reset_done.html:9 -#: templates/registration/password_reset_form.html:9 -msgid "Home" -msgstr "" - -#: templates/registration/password_change_done.html:9 -#: templates/registration/password_change_form.html:9 -msgid "Password change" -msgstr "" - -#: templates/registration/password_reset_complete.html:9 -#: templates/registration/password_reset_done.html:9 -#: templates/registration/password_reset_form.html:9 -msgid "Password reset" -msgstr "" - -#: templates/registration/password_reset_confirm.html:9 -msgid "Password reset confirmation" -msgstr "" - -#: templates/registration/password_reset_email.html:2 -#, python-format -msgid "" -"You're receiving this email because you requested a password reset for your " -"user account at %(site_name)s." -msgstr "" - -#: templates/registration/password_reset_email.html:4 -msgid "Please go to the following page and choose a new password:" -msgstr "" - -#: templates/registration/password_reset_email.html:9 -msgid "Thanks for using our site!" -msgstr "" - -#: templates/registration/password_reset_email.html:11 -#, python-format -msgid "The %(site_name)s team" -msgstr "" diff --git a/theme/static/css/admin.css b/theme/static/css/admin.css deleted file mode 100644 index 1a48e13a..00000000 --- a/theme/static/css/admin.css +++ /dev/null @@ -1,146 +0,0 @@ -/* - * SPDX-License-Identifier: GPL-3.0-or-later - * - * Copyright © 2019 Alexandre Iooss - * - * This is the custom style for Django Contrib Admin - */ - -/* Colors */ -#header { - background-color: #151515; - border-bottom: solid 5px #d80029; - padding: 10px 40px; -} - -.module h2, .module caption, .inline-group h2 { - background: #e6e0d8; - color: #222; -} - -a.section:link, a.section:visited { - color: #222; -} - -#user-tools a { - border-bottom: none; - font-weight: bold; -} - -div.breadcrumbs { - background: #3c3c3c; -} - -.button, input[type=submit], input[type=button], .submit-row input, a.button { - background: #d8a456; -} - -.button:active, input[type=submit]:active, input[type=button]:active, .button:focus, input[type=submit]:focus, -input[type=button]:focus, .button:hover, input[type=submit]:hover, input[type=button]:hover { - background: #b98d4a; -} - -.button.default, input[type=submit].default, .submit-row input.default { - background: #b98d4a; -} - -.button.default:active, input[type=submit].default:active, .button.default:focus, input[type=submit].default:focus, -.button.default:hover, input[type=submit].default:hover { - background: #a7752b; -} - -/* User tools top menu */ -#user-tools .dropdown:hover > a, #user-tools .dropdown:focus > a { - color: #79aec8; -} - -#user-tools .dropdown { - position: relative; /* needed to position the dropdown content */ - display: inline-block; -} - -#user-tools .dropdown-content { - display: block; - position: absolute; - background-color: #444444; - min-width: 180px; - box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); - z-index: 2000; - text-align: left; - - /* Hide menu by making it transparent */ - transition: opacity 100ms, visibility 100ms; - opacity: 0; - visibility: hidden; -} - -#user-tools .dropdown-content a { - color: #fff; - padding: 7px 8px; - text-decoration: none; - display: block; - line-height: 16px; -} - -#user-tools .dropdown-content a:hover { - background-color: #636363; -} - -#user-tools .dropdown:hover .dropdown-content { - opacity: 1; - visibility: visible; -} - -/* Fix navigation hidden */ -#header { - overflow: visible; -} - -.login #header { - overflow: hidden; -} - -/* Footer */ -#footer { - padding: 20px 40px; - color: #999; -} - -.login #footer { - padding: 10px; - font-size: 10pt; -} - -#footer a { - color: #777; -} - -#footer select { - height: 24px; - padding: 0; -} - -/* Pull footer to bottom */ -#content { - min-height: calc(100vh - 190px); -} - -.login #content { - min-height: 0; -} - -/* Recenter login button */ -.login .submit-row { - padding: 1em 0 0 0 !important; - text-align: center !important; -} - -/* Background on login page */ -body.login { - background: #f8f8f8 url("../images/login_bg.svg") no-repeat center top !important; -} - -/* Dashboard should take all page */ -.dashboard #content { - width: auto; -} diff --git a/theme/static/favicon/android-chrome-192x192.png b/theme/static/favicon/android-chrome-192x192.png deleted file mode 100644 index 5b31f298..00000000 Binary files a/theme/static/favicon/android-chrome-192x192.png and /dev/null differ diff --git a/theme/static/favicon/android-chrome-512x512.png b/theme/static/favicon/android-chrome-512x512.png deleted file mode 100644 index bb9e4daa..00000000 Binary files a/theme/static/favicon/android-chrome-512x512.png and /dev/null differ diff --git a/theme/static/favicon/apple-touch-icon.png b/theme/static/favicon/apple-touch-icon.png deleted file mode 100644 index c0b462bd..00000000 Binary files a/theme/static/favicon/apple-touch-icon.png and /dev/null differ diff --git a/theme/static/favicon/browserconfig.xml b/theme/static/favicon/browserconfig.xml deleted file mode 100644 index 49604f0e..00000000 --- a/theme/static/favicon/browserconfig.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - #da532c - - - diff --git a/theme/static/favicon/favicon-16x16.png b/theme/static/favicon/favicon-16x16.png deleted file mode 100644 index 5db7ed94..00000000 Binary files a/theme/static/favicon/favicon-16x16.png and /dev/null differ diff --git a/theme/static/favicon/favicon-32x32.png b/theme/static/favicon/favicon-32x32.png deleted file mode 100644 index a3d9263f..00000000 Binary files a/theme/static/favicon/favicon-32x32.png and /dev/null differ diff --git a/theme/static/favicon/favicon.ico b/theme/static/favicon/favicon.ico deleted file mode 100644 index 53393cda..00000000 Binary files a/theme/static/favicon/favicon.ico and /dev/null differ diff --git a/theme/static/favicon/mstile-150x150.png b/theme/static/favicon/mstile-150x150.png deleted file mode 100644 index 378274c9..00000000 Binary files a/theme/static/favicon/mstile-150x150.png and /dev/null differ diff --git a/theme/static/favicon/safari-pinned-tab.svg b/theme/static/favicon/safari-pinned-tab.svg deleted file mode 100644 index a8425e8a..00000000 --- a/theme/static/favicon/safari-pinned-tab.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/theme/static/favicon/site.webmanifest b/theme/static/favicon/site.webmanifest deleted file mode 100644 index 78fcc75f..00000000 --- a/theme/static/favicon/site.webmanifest +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "", - "short_name": "", - "icons": [ - { - "src": "/static/favicon/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/static/favicon/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" -} diff --git a/theme/static/images/login_bg.svg b/theme/static/images/login_bg.svg deleted file mode 100644 index beb9d00a..00000000 --- a/theme/static/images/login_bg.svg +++ /dev/null @@ -1,1529 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/theme/templates/admin/base_site.html b/theme/templates/admin/base_site.html deleted file mode 100644 index 199ac4e6..00000000 --- a/theme/templates/admin/base_site.html +++ /dev/null @@ -1,96 +0,0 @@ -{% extends "admin/base.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} - -{% load i18n staticfiles %} - -{% block title %}{{ title }} | {{ request.site.name }}{% endblock %} - -{% block branding %} - - - {{ request.site.name }} - - -{% endblock %} - -{% block usertools %} - {% if user.is_authenticated %} -
- {% block welcome-msg %} - {% trans 'Welcome,' %} - {% firstof user.get_short_name user.get_username %}. - {% endblock %} - {% block userlinks %} - {# Link to our apps outside of admin #} - {% trans 'Transfer' %} / - - {% if available_apps %} - {# When in admin site, list all admin pages and documentation #} - - {% trans 'View admin' %} - - {% for app in available_apps %} - {% for model in app.models %} - {% if model.admin_url %} - {{ model.name }} - {% endif %} - {% endfor %} - {% endfor %} - {% if user.is_active and user.is_superuser %} - {% url 'django-admindocs-docroot' as docsroot %} - {% if docsroot %} - {% trans 'Documentation' %} - {% endif %} - {% endif %} - - / - {% elif user.is_staff %} - {# When not in admin site, but user is staff then add a link #} - {% trans 'View admin' %} / - {% endif %} - {% trans 'Log out' %} - {% endblock %} -
- {% endif %} -{% endblock %} - -{% block extrastyle %} - - - {# Favicon #} - - - - - - - - - -{% endblock %} - -{% block footer %} - {% if not is_popup %} - - {% endif %} -{% endblock %} diff --git a/theme/templates/registration/logged_out.html b/theme/templates/registration/logged_out.html deleted file mode 100644 index 48949e84..00000000 --- a/theme/templates/registration/logged_out.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "registration/logged_out.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} -{% load i18n %} - -{% block breadcrumbs %} - -{% endblock %} - -{% block content %} -

{% trans "Thanks for spending some quality time with the Web site today." %}

-

{% trans 'Log in again' %}

-{% endblock %} \ No newline at end of file diff --git a/theme/templates/registration/login.html b/theme/templates/registration/login.html deleted file mode 100644 index 8d10a1b9..00000000 --- a/theme/templates/registration/login.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "admin/login.html" %} -{% comment %} -SPDX-License-Identifier: GPL-2.0-or-later -{% endcomment %} - -{% load i18n %} - -{% block title %}{% trans "Log in" %}{% endblock %} \ No newline at end of file diff --git a/theme/templates/registration/password_change_done.html b/theme/templates/registration/password_change_done.html deleted file mode 100644 index d42fbfd9..00000000 --- a/theme/templates/registration/password_change_done.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "registration/password_change_done.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} -{% load i18n %} - -{% block breadcrumbs %} - -{% endblock %} diff --git a/theme/templates/registration/password_change_form.html b/theme/templates/registration/password_change_form.html deleted file mode 100644 index 07ab38c9..00000000 --- a/theme/templates/registration/password_change_form.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "registration/password_change_form.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} -{% load i18n %} - -{% block breadcrumbs %} - -{% endblock %} diff --git a/theme/templates/registration/password_reset_complete.html b/theme/templates/registration/password_reset_complete.html deleted file mode 100644 index f0ec4b8f..00000000 --- a/theme/templates/registration/password_reset_complete.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "registration/password_reset_complete.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} -{% load i18n %} - -{% block breadcrumbs %} - -{% endblock %} diff --git a/theme/templates/registration/password_reset_confirm.html b/theme/templates/registration/password_reset_confirm.html deleted file mode 100644 index 62a761d5..00000000 --- a/theme/templates/registration/password_reset_confirm.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "registration/password_reset_confirm.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} -{% load i18n %} - -{% block breadcrumbs %} - -{% endblock %} diff --git a/theme/templates/registration/password_reset_done.html b/theme/templates/registration/password_reset_done.html deleted file mode 100644 index ea67e596..00000000 --- a/theme/templates/registration/password_reset_done.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "registration/password_reset_done.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} -{% load i18n %} - -{% block breadcrumbs %} - -{% endblock %} diff --git a/theme/templates/registration/password_reset_email.html b/theme/templates/registration/password_reset_email.html deleted file mode 100644 index f43d80c3..00000000 --- a/theme/templates/registration/password_reset_email.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n %}{% autoescape off %} -{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %} - -{% trans "Please go to the following page and choose a new password:" %} -{% block reset_link %} -{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} -{% endblock %} - -{% trans "Thanks for using our site!" %} - -{% blocktrans %}The {{ site_name }} team{% endblocktrans %} - -{% endautoescape %} diff --git a/theme/templates/registration/password_reset_form.html b/theme/templates/registration/password_reset_form.html deleted file mode 100644 index 865d5160..00000000 --- a/theme/templates/registration/password_reset_form.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "registration/password_reset_form.html" %} -{% comment %} -SPDX-License-Identifier: GPL-3.0-or-later -{% endcomment %} -{% load i18n %} - -{% block breadcrumbs %} - -{% endblock %} diff --git a/theme/tests/__init__.py b/theme/tests/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/theme/tests/test_templates.py b/theme/tests/test_templates.py deleted file mode 100644 index 6d00c147..00000000 --- a/theme/tests/test_templates.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- mode: python; coding: utf-8 -*- -# SPDX-License-Identifier: GPL-3.0-or-later - -from django.contrib.auth.models import User -from django.test import TestCase - -""" -Test that every themed page still works -""" - - -class TemplateLoggedOutTests(TestCase): - def test_login_page(self): - response = self.client.get('/admin/login/') - self.assertEqual(response.status_code, 200) - - -class TemplateLoggedInTests(TestCase): - def setUp(self): - self.user = User.objects.create_superuser( - username="admin", - password="adminadmin", - email="admin@example.com", - ) - self.client.force_login(self.user) - - def test_login_page(self): - """ - Login page should redirect - """ - response = self.client.get('/admin/login/') - self.assertEqual(response.status_code, 302) - - def test_admin_index(self): - response = self.client.get('/admin/') - self.assertEqual(response.status_code, 200) - - def test_accounts_password_reset(self): - response = self.client.get('/accounts/password_reset/') - self.assertEqual(response.status_code, 200) - - def test_logout_page(self): - response = self.client.get('/accounts/logout/') - self.assertEqual(response.status_code, 200)