From 8ef01acd1622a9931de0f4d26dfbd2db5e4c5844 Mon Sep 17 00:00:00 2001 From: Virginia Dooley Date: Mon, 13 May 2024 14:57:51 +0100 Subject: [PATCH] Replace trans tags with separate trans files --- dc_utils/templates/dc_base.html | 28 ++++++++-------------- dc_utils/templates/includes/cy-footer.html | 17 +++++++++++++ dc_utils/templates/includes/en-footer.html | 15 ++++++++++++ 3 files changed, 42 insertions(+), 18 deletions(-) create mode 100644 dc_utils/templates/includes/cy-footer.html create mode 100644 dc_utils/templates/includes/en-footer.html diff --git a/dc_utils/templates/dc_base.html b/dc_utils/templates/dc_base.html index 840a064..7f3004c 100644 --- a/dc_utils/templates/dc_base.html +++ b/dc_utils/templates/dc_base.html @@ -6,7 +6,6 @@ {% stylesheet 'styles' %} {% endblock extra_site_css %} - {% block body_raw %}
@@ -50,29 +49,22 @@ {% block mailing_list %} {% endblock mailing_list %} {% block footer_menu %} {% endblock footer_menu %} {% block footer_logo %} - + {% if LANGUAGE_CODE == 'cy' %} + {% include 'includes/cy-footer.html' %} + {% else %} + {% include 'includes/en-footer.html' %} + {% endif %} {% endblock footer_logo %} {% block extra_footer_text %} {% endblock extra_footer_text %} diff --git a/dc_utils/templates/includes/cy-footer.html b/dc_utils/templates/includes/cy-footer.html new file mode 100644 index 0000000..d9ff857 --- /dev/null +++ b/dc_utils/templates/includes/cy-footer.html @@ -0,0 +1,17 @@ +{% load static %} + diff --git a/dc_utils/templates/includes/en-footer.html b/dc_utils/templates/includes/en-footer.html new file mode 100644 index 0000000..85229b8 --- /dev/null +++ b/dc_utils/templates/includes/en-footer.html @@ -0,0 +1,15 @@ +{% load static %} +