blob: a9e72da16499d51de8dad9868d04367b7d777a1e (
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
32
33
34
35
|
{% extends "journal/base.html" %}
{% load comments %}
{% block title %}Journal Entries{% endblock %}
{% block content %}
<br />
<div class="notice">
This page has an <a href="/journal/entries/rss.xml">RSS feed</a>.
<br />
See also <a href="/artifacts/">artifacts</a>, <a href="microentries">
microentries</a>.
</div>
{% if object_list %}
{% for item in object_list %}
{% get_comment_count for item as comment_count %}
<h3><a href="{{ item.get_absolute_url }}">
{% if item.title %}{{item.title}}{%else%}[Untitled]{%endif%}</a></h3>
<i>{{item.date|date:"D, d/m/Y @H:i"}} by {{ item.author.username }}.
<a href="{{ item.get_absolute_url }}#commentary">{{ comment_count }} comments</a></i>
<p style="padding-left:30px">
{{ item.html_content|truncatewords_html:256 }}
</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 %}
|