0d99d90a3eda7c73ba75546d35b5d27a538eaf90
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / single_entry_rst.html
1 {% extends "base.html" %}
2
3 {% load xhtml11rst %}
4 {% load comments %}
5
6 {% block content %}
7 <h1>{{ entry.title }}</h1>
8 <div class="blogentry">
9 {{ entry.content|restructuredtext }}
10 </div>
11 <p>Posted: {{ entry.publish_date|date:"Y-m-d H:i" }} 
12     {% if entry.sections.count %}
13     in 
14     {% for section in entry.sections.all %}
15         {% if forloop.first %}
16             <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>{% if not forloop.last %}, {% endif %}
17         {% else %}
18             {% if forloop.last %}
19                 and <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>
20             {% else %}
21                 <a href="{{ section.get_abolute_url }}">{{ section.title }}</a>
22             {% endif %}
23         {% endif %}
24     {% endfor %}
25     {% endif %}
26     {% get_comment_count for entry as comment_count %}
27     <a href="{{ entry.get_absolute_url }}">permalink</a> | Comments: {{ comment_count }}
28 </p>
29 {% if comment_count %}
30     <div class="comments">
31     <a name="comments"></a>
32     {% get_comment_list for entry as comment_list %}
33     {% for comment in comment_list %}
34     <div class="comment">
35         <h3>{{ comment.user_name }} - {{ comment.submit_date|date:"Y-m-d H:i" }}</h3>
36         {{ comment.comment }}
37     </div>
38     {% endfor %}
39     </div>
40 {% endif %}
41 <div class="comment_new">
42     {% render_comment_form for entry %}
43 </div>
44 {% endblock %}