From 154ca83a01c834bd4eea469a6f4d9393105cf9b8 Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Fri, 14 Feb 2025 18:08:55 -0300 Subject: [PATCH] language picker onto a separate file --- dashboard/templates/base.html | 18 +----------------- dashboard/templates/language_picker.html | 20 ++++++++++++++++++++ login/templates/login.html | 22 +++------------------- user/templates/panel.html | 19 ++----------------- 4 files changed, 26 insertions(+), 53 deletions(-) create mode 100644 dashboard/templates/language_picker.html diff --git a/dashboard/templates/base.html b/dashboard/templates/base.html index 06f917e..6ebd539 100644 --- a/dashboard/templates/base.html +++ b/dashboard/templates/base.html @@ -236,23 +236,7 @@
{{ commit_id }} - + {% include "language_picker.html" %}
diff --git a/dashboard/templates/language_picker.html b/dashboard/templates/language_picker.html new file mode 100644 index 0000000..0389b0d --- /dev/null +++ b/dashboard/templates/language_picker.html @@ -0,0 +1,20 @@ + +{% load i18n language_code %} + + diff --git a/login/templates/login.html b/login/templates/login.html index e92aeb6..294477b 100644 --- a/login/templates/login.html +++ b/login/templates/login.html @@ -38,7 +38,7 @@
- +
@@ -46,23 +46,7 @@ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/user/templates/panel.html b/user/templates/panel.html index 13b4262..3988383 100644 --- a/user/templates/panel.html +++ b/user/templates/panel.html @@ -12,23 +12,8 @@ {# The language picker is mostly here to fill up some space on user settings #}
- + + {% include "language_picker.html" %}