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 ed75480..47685cf 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -30,25 +30,7 @@ -
- {% for art in articles %} - {% if forloop.counter0 > 2 %} -
-
-
-
{{ art.name }}
-
- {{ art.description|truncatechars:400 }} - {#
#} -
-
-
- -
- {% endif %} - {#
{{ art.text|safe }}
#} - {% endfor %} -
+ {% include 'blocks/static_pages_blocks/b_news_elements.html' %} {% if last_block == False %}