load humanize load comments comments include header html div id main f

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% load humanize %}
{% load comments.comments %}
{% include 'header.html' %}
<div id="main">
{% for article in object_list %}
{% get_free_comment_count for articles.article article.id as comment_count %}
<h3>
<a href="/articles/{{article.slug}}/">
{{article.title}}
</a>
</h3>
<div class="article_head">
<span class="date">{{article.date}}</span><br />
<i>Автор: </i>{{article.author}}
<i>Теги:</i>
{% for tag in article.tags.all %}
<a href="/tags/{{tag.slug}}">{{tag.name}}</a>
{% endfor %}
<i>Коментариев:</i> {{ comment_count }}
</div>
<p>
{{article.precis}}
<a href="/articles/{{article.slug}}"> Далее..</a>
</p>
{% endfor %}
</div>
<div id="sidebar"></div>
<div style="clear: both;"></div>
{% include 'footer.html' %}