0.0.279
This commit is contained in:
@@ -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 %}
|
||||
7
templates/blocks/articles/b_news_elements_content.html
Normal file
7
templates/blocks/articles/b_news_elements_content.html
Normal 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>
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
@@ -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' %}" />
|
||||
|
||||
|
||||
|
||||
|
||||
16
templates/widgets/w_news_element_item.html
Normal file
16
templates/widgets/w_news_element_item.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user