Small fixes for the blog handling code
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / single_entry_rst.html
1 {% extends "base.html" %}
2
3 {% load markup %}
4
5 {% block content %}
6 <h1>{{ entry.title }}</h1>
7 {{ entry.content|restructuredtext }}
8 <p>Posted: {{ entry.publish_date|date:"Y-m-d H:i" }} 
9     {% if entry.sections.count %}
10     in 
11     {% for section in entry.sections.all %}
12         {% if forloop.first %}
13             <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>{% if not forloop.last %}, {% endif %}
14         {% else %}
15             {% if forloop.last %}
16                 and <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>
17             {% else %}
18                 <a href="{{ section.get_abolute_url }}">{{ section.title }}</a>
19             {% endif %}
20         {% endif %}
21     {% endfor %}
22     {% endif %}
23     <a href="{{ entry.get_absolute_url }}">permalink</a>
24 </p>
25 {% endblock %}