From 7a26ceae3e63375050a4c53c9005650414d25098 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 6 Jun 2023 22:27:30 +0200 Subject: [PATCH] generating language dropdown urls for nav with regex --- gawa/start/templates/errors/400.html | 15 -------------- gawa/start/templates/errors/403.html | 15 -------------- gawa/start/templates/errors/404.html | 15 -------------- gawa/start/templates/errors/500.html | 15 -------------- gawa/start/templates/nav.html | 2 +- gawa/start/templatetags/helper_tags.py | 27 ++++++++++++++++---------- 6 files changed, 18 insertions(+), 71 deletions(-) delete mode 100644 gawa/start/templates/errors/400.html delete mode 100644 gawa/start/templates/errors/403.html delete mode 100644 gawa/start/templates/errors/404.html delete mode 100644 gawa/start/templates/errors/500.html diff --git a/gawa/start/templates/errors/400.html b/gawa/start/templates/errors/400.html deleted file mode 100644 index 5d98112..0000000 --- a/gawa/start/templates/errors/400.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'base.html' %} -{% load i18n %} -{% get_current_language as LANGUAGE_CODE %} -{% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %} -{% block title %}{% translate "cscherr.de" %} - {% translate "startpage" %}{% endblock title %} -{% block main %} -
-

400 {% translate "Bad request" %}

-

{% translate "You sent bad data to the server." %}

-
-
-

{% translate "Looking for anything specific?" %}

- {% include 'main_search_form.html' %} -
-{% endblock main %} diff --git a/gawa/start/templates/errors/403.html b/gawa/start/templates/errors/403.html deleted file mode 100644 index 7e8e75e..0000000 --- a/gawa/start/templates/errors/403.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'base.html' %} -{% load i18n %} -{% get_current_language as LANGUAGE_CODE %} -{% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %} -{% block title %}{% translate "cscherr.de" %} - {% translate "startpage" %}{% endblock title %} -{% block main %} -
-

403 {% translate "Permission denied" %}

-

{% translate "You are not allowed to access this page." %}

-
-
-

{% translate "Looking for anything specific?" %}

- {% include 'main_search_form.html' %} -
-{% endblock main %} diff --git a/gawa/start/templates/errors/404.html b/gawa/start/templates/errors/404.html deleted file mode 100644 index 3153bef..0000000 --- a/gawa/start/templates/errors/404.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'base.html' %} -{% load i18n %} -{% get_current_language as LANGUAGE_CODE %} -{% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %} -{% block title %}{% translate "cscherr.de" %} - {% translate "startpage" %}{% endblock title %} -{% block main %} -
-

404 {% translate "Not found" %}

-

{% translate "The resource you are looking for does not exist." %}

-
-
-

{% translate "Looking for anything specific?" %}

- {% include 'main_search_form.html' %} -
-{% endblock main %} diff --git a/gawa/start/templates/errors/500.html b/gawa/start/templates/errors/500.html deleted file mode 100644 index cfc873d..0000000 --- a/gawa/start/templates/errors/500.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'base.html' %} -{% load i18n %} -{% get_current_language as LANGUAGE_CODE %} -{% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %} -{% block title %}{% translate "cscherr.de" %} - {% translate "startpage" %}{% endblock title %} -{% block main %} -
-

500 {% translate "Internal Server Error" %}

-

{% translate "Something went wrong." %}

-
-
-

{% translate "Looking for anything specific?" %}

- {% include 'main_search_form.html' %} -
-{% endblock main %} diff --git a/gawa/start/templates/nav.html b/gawa/start/templates/nav.html index de8b9fa..71b5fac 100644 --- a/gawa/start/templates/nav.html +++ b/gawa/start/templates/nav.html @@ -51,7 +51,7 @@