From cb9bc7cc56fea1a7071d025da9f019b2749acf4e Mon Sep 17 00:00:00 2001 From: Danhia Date: Wed, 9 Feb 2022 12:22:12 +0100 Subject: [PATCH] news content is now out of the db for languages other than english --- src/home/templates/home/home.html | 14 +++----------- src/home/templates/news/fr/42ctf_vm.html | 7 +++++++ src/home/templates/news/fr/dynamic_scoring.html | 7 +++++++ .../templates/news/fr/speed_dating_ctf_2022.html | 9 +++++++++ src/home/templates/news/fr/sql_challenges.html | 8 ++++++++ src/home/templates/news/fr/welcome_ctf_2021.html | 9 +++++++++ src/home/templatetags/__init__.py | 0 src/home/templatetags/get_news.py | 13 +++++++++++++ src/home/views.py | 14 +------------- 9 files changed, 57 insertions(+), 24 deletions(-) create mode 100644 src/home/templates/news/fr/42ctf_vm.html create mode 100644 src/home/templates/news/fr/dynamic_scoring.html create mode 100644 src/home/templates/news/fr/speed_dating_ctf_2022.html create mode 100644 src/home/templates/news/fr/sql_challenges.html create mode 100644 src/home/templates/news/fr/welcome_ctf_2021.html create mode 100644 src/home/templatetags/__init__.py create mode 100644 src/home/templatetags/get_news.py diff --git a/src/home/templates/home/home.html b/src/home/templates/home/home.html index 4d9f255..ee59ee4 100644 --- a/src/home/templates/home/home.html +++ b/src/home/templates/home/home.html @@ -3,6 +3,7 @@ {% load i18n %} {% get_current_language as lang %} {% load is_member %} +{% load get_news %}