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 %}
- {% if lang == "fr" and n.content %} - {{ n.content|safe }} - {% elif lang == "en" and n.content_en %} - {{ n.content_en|safe }} - {% elif lang == "de" and n.content_de %} - {{ n.content_de|safe }} - {% elif lang == "ru" and n.content_ru %} - {{ n.content_ru|safe }} - {% else %} - {% trans "No translation available. Please try another language (English or French)." %} - {% endif %} + {% get_news_by_lang n lang as content %} + {{ content | safe }}