{% load static %}
{% load arts_tags_extra %}

{% if not from_el or forloop.counter > from_el %}
{#    <div class="news_item_pagination {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">#}
    <div class="news_item_pagination {% get_side_art last_el forloop.counter elements_on_page %}">
        <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">
                 <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>
        </a>
    </div>
{% endif %}