This commit is contained in:
SBD
2023-11-29 17:56:45 +03:00
parent 426071fe15
commit 1124149cf8
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ function load_routes (el,news=null,incrase) {
iterator_f_check++
iterator_f_check++
if (data.last_block === true){
el.classList.add("hide")
el.classList.add("hide")
} else if (data.last_block === false){
if (el.classList.contains("hide")) {
el.classList.remove("hide")

View File

@@ -1,7 +1,7 @@
{% load static %}
{% if not from_el or forloop.counter > from_el %}
<div class="news_item_pagination">
<div class="news_item_pagination {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
<a href="{% url "article_one" art.url %}">
<div class="pag_news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>
<div class="pag_news_item_text">