This commit is contained in:
2023-10-06 18:00:54 +03:00
parent 21b873c80d
commit 67a51c882a
10 changed files with 494 additions and 54 deletions

View File

@@ -1,22 +1,6 @@
{% load i18n %}
{% load static %}
<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>
{% for art in articles %}
{% include "widgets/w_news_element_item.html" %}
{#<div>{{ art.text|safe }}</div>#}
{% endfor %}

View File

@@ -0,0 +1,7 @@
{% load i18n %}
<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

@@ -12,20 +12,23 @@
{% include "forms/f_find_route_filters_form.html" %}
{% include "blocks/b_finded_routes.html" %}
<div class="block_w_paging routes">
{% include "blocks/b_finded_routes.html" %}
<div class="clear_both"></div>
<div class="clear_both"></div>
{% if last_block_routes == False %}
<div class="text-align-center w-68 f-r">
<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">
<img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
{% if last_block_routes == 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">
<img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
<div class="clear_both"></div>
</div>
{% endif %}

View File

@@ -20,10 +20,10 @@
</div>
{% endif %}
<div class="page_routes_1">
<div class="page_paging_elements_1">
{% include "blocks/b_search_routes.html" %}
</div>
<div class="page_routes_2">
<div class="page_paging_elements_2">
</div>

View File

@@ -31,19 +31,20 @@
{% endfor %}
</div>
{% with from_el=3 %}
{% include 'blocks/articles/b_news_elements.html' %}
{% endwith %}
{# boris edited #}
{% if last_block == False %}
<div class="text-align-center w-68 f-r">
{% csrf_token %}
<button class="button-find-more-routes" id="{{ last_el }}" onclick="load_routes(this,'news')">{% trans "Показать ещё 10" %}</button>
<div class="width-100 text-align-center mb-10">
<img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
<div class="block_w_paging">
{% with from_el=3 %}
{% include 'blocks/articles/b_news_elements.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>
<div class="width-100 text-align-center mb-10">
<img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
{# boris edited end#}
{% endblock %}

View File

@@ -14,7 +14,7 @@
<script type="text/javascript" src="{% static "js/datarangepicker.js" %}"></script>
<script src="{% static "js/rangecalendartech.js" %}"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
<link rel="stylesheet" href="{% static 'css/datarangepicker.css' %}" />

View File

@@ -0,0 +1,16 @@
{% load static %}
{% 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 %}