From 0df306741646bac6c2f96ac0ed0d65b7d2a6fc38 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Thu, 5 Oct 2023 19:12:36 +0300 Subject: [PATCH] 0.0.172 --- .../static_pages_blocks/b_news_elements.html | 19 +++++++++++++++++++ templates/pages/p_articles.html | 18 +----------------- 2 files changed, 20 insertions(+), 17 deletions(-) create mode 100644 templates/blocks/static_pages_blocks/b_news_elements.html diff --git a/templates/blocks/static_pages_blocks/b_news_elements.html b/templates/blocks/static_pages_blocks/b_news_elements.html new file mode 100644 index 0000000..4e086a5 --- /dev/null +++ b/templates/blocks/static_pages_blocks/b_news_elements.html @@ -0,0 +1,19 @@ + {% load i18n %} + +
+ {% for art in articles %} +
+
+
+
{{ art.name }}
+
+ {{ art.description|truncatechars:400 }} +{#
#} +
+
+
+ +
+ {#
{{ art.text|safe }}
#} + {% endfor %} +
\ No newline at end of file diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index e519e21..8716ea6 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -29,23 +29,7 @@ -
- {% for art in articles %} -
-
-
-
{{ art.name }}
-
- {{ art.description|truncatechars:400 }} -{#
#} -
-
-
- -
- {#
{{ art.text|safe }}
#} - {% endfor %} -
+ {% include 'blocks/static_pages_blocks/b_news_elements.html' %} {% if last_block == False %}