From 747091c744608175ef24500018d2a3322fadfdf1 Mon Sep 17 00:00:00 2001 From: SDE Date: Sun, 3 Dec 2023 15:39:52 +0300 Subject: [PATCH] 0.8.27 one article breadcrumbs --- templates/blocks/articles/b_news_elements.html | 2 +- templates/pages/p_article.html | 2 +- templates/pages/p_articles.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/blocks/articles/b_news_elements.html b/templates/blocks/articles/b_news_elements.html index 7c5d901..4b57a0e 100644 --- a/templates/blocks/articles/b_news_elements.html +++ b/templates/blocks/articles/b_news_elements.html @@ -1,6 +1,6 @@ {% load static %} -{% for art in forloop_for %} +{% for art in articles %} {% include "widgets/w_news_element_item.html" %} {#
{{ art.text|safe }}
#} {% endfor %} \ No newline at end of file diff --git a/templates/pages/p_article.html b/templates/pages/p_article.html index 7ceea01..a002e5c 100644 --- a/templates/pages/p_article.html +++ b/templates/pages/p_article.html @@ -31,7 +31,7 @@
- {% with from_el=3 forloop_for=breadcrumbs_arts %} + {% with from_el=0 articles=breadcrumbs_arts last_el=0 elements_on_page=3 %} {% include 'blocks/articles/b_news_elements_content.html' %} {% endwith %} diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index db7fc25..ada10c8 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -32,7 +32,7 @@
- {% with from_el=3 forloop_for=articles %} + {% with from_el=3 %} {% include 'blocks/articles/b_news_elements_content.html' %} {% endwith %} {# boris edited #}