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