articles paging
This commit is contained in:
SDE
2023-10-05 19:42:13 +03:00
parent 63d3ffddd4
commit 32f65de458
7 changed files with 11 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
{% load i18n %}
<div class="news_block_pagination">
{% for art in articles %}
{% if from_el and forloop.counter > from_el %}
<div class="news_item_pagination">
<div class="pag_news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>
<div class="pag_news_item_text">
<div class="news_header">{{ art.name }}</div>
<div class="news_description">
{{ art.description|truncatechars:400 }}
{# <div class="news_gradient"></div>#}
</div>
</div>
<div class="clear_both"></div>
</div>
{% endif %}
{#<div>{{ art.text|safe }}</div>#}
{% endfor %}
</div>
<div class="clear_both"></div>