Источник шаблона: newsfeed/samearticles.html

{% load newsfeed_extras i18n %} {% if f_artc %} <!-- SAME ARTICLES BLOCK--> <div class="feed"> <!-- SAME ARTICLES HEADER--> <div class="header"> <div class="contentHeader">{% trans 'ПОХОЖИЕ ПУБЛИКАЦИИ' %}</div> <div class="clear"></div> </div> <!-- SAME ARTICLES SWITCH BETWEEN MOST FRESH, MOST POPULAR OR MOST INTERESTING ARTICLES--> <div class="switches"> <div data-link=".sameHot" class="switch active">{% trans 'ГОРЯЧИЕ' %}</div> <div data-link=".samePop" class="switch">{% trans 'ПОПУЛЯРНЫЕ' %}</div> <div data-link=".sameInt" class="switch">{% trans 'ИНТЕРЕСНЫЕ' %}</div> <div class="border"></div> <div class="clear"></div> </div> <div class="feedWrapper"> {% if f_artc %} <!-- SAME ARTICLES MOST FRESH WRAPPER--> <div class="wrapper sameHot active"> {% for article in f_artc %} <!-- SAME ARTICLE BLOCK--> <div class="article same"> <!-- ARTICLE HEADER--><a href="{% url 'newsfeed:article' article.id %}" class="articleHeader">{{article.title_ru|safe }}</a> <!-- ARTICLE INFORMATION--> <div class="articleInfo"> <!--ARTICLE PUBLISHING DATE--> <div class="articleDate">{{ article.date|mydate }}</div> <!-- ARTICLE VIEWS COUNT--> <div class="articleViews">{{ article.views }}</div> <!-- ARTICLE COMMENTARIES COUNT--><a href="{% url 'newsfeed:article' article.id %}#commentaries" class="articleComments">{{ article.num_comm }}</a> </div> <div class="clear"></div> </div> {% endfor %} <!-- LINK TO CATEGORY OF MOST FRESH NEWS--><a href="{% url 'newsfeed:index'%}" class="link">{% trans 'Весь топ новых статей' %}</a> <div class="clear"></div> </div> {% endif %} {% if p_artc %} <!-- SAME ARTICLES MOST POPULAR WRAPPER--> <div class="wrapper samePop"> {% for article in p_artc %} <!-- SAME ARTICLE BLOCK--> <div class="article same"> <!-- ARTICLE HEADER--><a href="{% url 'newsfeed:article' article.id %}" class="articleHeader">{{article.title_ru|safe }}</a> <!-- ARTICLE INFORMATION--> <div class="articleInfo"> <!--ARTICLE PUBLISHING DATE--> <div class="articleDate">{{ article.date|mydate }}</div> <!-- ARTICLE VIEWS COUNT--> <div class="articleViews">{{ article.views }}</div> <!-- ARTICLE COMMENTARIES COUNT--><a href="{% url 'newsfeed:article' article.id %}#commentaries" class="articleComments">{{ article.num_comm }}</a> </div> <div class="clear"></div> </div> {% endfor %} <!-- LINK TO CATEGORY OF MOST POPULAR NEWS--><a href="{% url 'newsfeed:category' popular.id %}" class="link">{% trans 'Весь топ популярных статей' %}</a> <div class="clear"></div> </div> {% endif %} {% if int_artc %} <!-- SAME ARTICLES MOST INTERESTING WRAPPER--> <div class="wrapper sameInt"> {% for article in int_artc %} <!-- SAME ARTICLE BLOCK--> <div class="article same"> <!-- ARTICLE HEADER--><a href="{% url 'newsfeed:article' article.id %}" class="articleHeader">{{article.title_ru|safe }}</a> <!-- ARTICLE INFORMATION--> <div class="articleInfo"> <!--ARTICLE PUBLISHING DATE--> <div class="articleDate">{{ article.date|mydate }}</div> <!-- ARTICLE VIEWS COUNT--> <div class="articleViews">{{ article.views }}</div> <!-- ARTICLE COMMENTARIES COUNT--><a href="{% url 'newsfeed:article' article.id %}#commentaries" class="articleComments">{{ article.num_comm }}</a> </div> <div class="clear"></div> </div> {% endfor %} <!-- LINK TO CATEGORY OF MOST INTERESTING NEWS--><a href="{% url 'newsfeed:category' interesting.id %}" class="link">{% trans 'Весь топ обсуждаемых статей' %}</a> <div class="clear"></div> </div> {% endif %} </div> </div> {% endif %}