{% extends "tb_base.html" %}
{% load static %}
{% load i18n %}

{% block content %}
    <div class="wrapper_advertisement">
        <div class="advertisement_block_news">
            <div class="advertisement_content">
                Сюда вставляется реклама из админки, веротяно баннер
            </div>
        </div>
    </div>


    <div class="three_pinned_news">
        {% for art in articles %}
            {% if forloop.counter0 < 3 %}
                <div class="news_item">
                    <a href="{% url "article_one" art.url %}">
                        <div class="news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>
                        <div class="news_header">{{ art.name }}</div>
                        <div class="news_description">
                            {{ art.description|truncatechars:100 }}
                            <div class="news_gradient"></div>
                        </div>
                    </a>
                </div>
            {% endif %}

          {#<div>{{ art.text|safe }}</div>#}
        {% endfor %}

    </div>
    <div class="block_w_paging">
        {% with from_el=3 %}
            {% 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 "Показать ещё 2" %}</button>
                <div class="width-100 text-align-center mb-10">
                    <img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
                </div>
            </div>
        {% endif %}
    </div>
{#    boris edited end#}
{% endblock %}