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

{% load newsfeed_extras i18n %} <!-- POPULAR ARTICLES--> <div class="wrapper pop"> {% for article in p_artc %} <!-- MINIMAL ARTICLE BLOCK FOR RIGHT PANEL--> <div class="article minimal"> <!-- ARTICLE HEADER--> <a href="{% url 'newsfeed:article' article.id %}" class="articleHeader dot">{{ article.title_ru }}</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 POPULAR ARTICLE'S CATEGORY--> <a href="{% url 'newsfeed:category' popular.id %}" class="link">{% trans 'Весь топ популярных статей' %}</a> </div> <!-- FRESH ARTICLES--> <div class="wrapper hot active"> {% for article in f_artc %} <!-- MINIMAL ARTICLE BLOCK FOR RIGHT PANEL--> <div class="article minimal"> <!-- ARTICLE HEADER--> <a href="{% url 'newsfeed:article' article.id %}" class="articleHeader dot">{{ article.title_ru }}</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 FRESH ARTICLE'S CATEGORY--> <a href="{% url 'newsfeed:index' %}" class="link">{% trans 'Весь топ новых статей' %}</a> </div> <!-- INTERESTING ARTICLES--> <div class="wrapper int"> {% for article in int_artc %} <!-- MINIMAL ARTICLE BLOCK FOR RIGHT PANEL--> <div class="article minimal"> <!-- ARTICLE HEADER--> <a href="{% url 'newsfeed:article' article.id %}" class="articleHeader dot">{{ article.title_ru }}</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 INTERESTING ARTICLE'S CATEGORY--> <a href="{% url 'newsfeed:category' interesting.id %}" class="link">{% trans 'Весь топ обсуждаемых статей' %}</a> </div>