blob: eca642d608489735c6a877ed19f21edb7da1331d (
plain)
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
|
{% extends "journal/base.html" %}
{% load comments %}
{% block path %}{{block.super}}
»<a href="/journal/microentries/"> microentries</a>
{% block title %}Journal Microentries{% endblock %}
{% block content %}
<br />
{% if object_list %}
{% for item in object_list %}
<b>{{item.date|date:"D, d/m/Y @H:i"}}:
<a href="{{ item.get_absolute_url }}">
{% if item.title %}{{item.title}}{%else%}[Untitled]{%endif%}</a></b>
<p style="padding-left:30px">
{{ item.html_content|truncatewords_html:256 }}
{% get_comment_count for item as comment_count %}
(<a href="{{ item.get_absolute_url }}#commentary">{{ comment_count }} comments</a>)
</p>
{% endfor %}
{% else %}
<p>No entries have been entered yet!</p>
{% endif %}
{% if is_paginated %} {% if has_previous %}
<a href="./?page={{ previous }}">« previous</a> |
{% endif %} {% if has_next %}
<a href="./?page={{ next }}">next »</a>
{% endif %} {% endif %}
{% endblock %}
|