This commit is contained in:
2023-10-06 18:50:41 +03:00
parent b65a668e77
commit 735a84bf9a
4 changed files with 32 additions and 10 deletions

View File

@@ -3,5 +3,4 @@
<div class="page_paging_elements_1">
{% include "blocks/articles/b_news_elements.html" %}
</div>
<div class="page_paging_elements_2"></div>
<div class="clear_both"></div>

View File

@@ -19,7 +19,7 @@
<div class="clear_both"></div>
{% if last_block_routes == False %}
{% if last_block == False %}
<div class="text-align-center">
<button class="button-find-more-routes" id="{{ last_el }}" onclick="load_routes(this)">{% trans "Показать ещё 10" %}</button>
<div class="width-100 text-align-center mb-10">

View File

@@ -33,13 +33,13 @@
</div>
<div class="block_w_paging">
{% with from_el=3 %}
{% include 'blocks/articles/b_news_elements.html' %}
{% include 'blocks/articles/b_news_elements_content.html' %}
{% endwith %}
{# boris edited #}
{% if last_block == False %}
<div class="text-align-center">
{% csrf_token %}
<button class="button-find-more-routes" id="{{ last_el }}" onclick="load_routes(this,'news')">{% trans "Показать ещё 10" %}</button>
<button class="button-find-more-routes" id="{{ last_el }}" onclick="load_routes(this,'news')">{% trans "Показать ещё 2" %}</button>
<div class="width-100 text-align-center mb-10">
<img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
</div>