0.7.53
articles page
This commit is contained in:
@@ -21,7 +21,7 @@ def get_articles(art_kwargs, request_Data=None, from_el=None, to_el=None):
|
||||
arts = arts[:to_el]
|
||||
else:
|
||||
to_el = 3
|
||||
arts = arts[:3]
|
||||
arts = arts[:to_el]
|
||||
|
||||
last_block = False
|
||||
if not to_el or to_el >= el_count:
|
||||
|
||||
@@ -2,18 +2,20 @@
|
||||
|
||||
<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 class="news_gradient"></div>#}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear_both"></div>
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
{#<div>{{ art.text|safe }}</div>#}
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -29,8 +29,9 @@
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
{% with from_el=3 %}
|
||||
{% include 'blocks/static_pages_blocks/b_news_elements.html' %}
|
||||
{% endwith %}
|
||||
|
||||
{% if last_block == False %}
|
||||
<div class="text-align-center w-68 f-r">
|
||||
|
||||
Reference in New Issue
Block a user