blob: 54e63e59c47fdbcc49ef416519d39c966a3d0a80 (
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
36
37
38
39
|
{% extends "journal/base.html" %}
{% load comments %}
{% block otherhead %}{{ block.super}}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/journal/rss/latest_microentries/">
{% endblock %}
{% block path %}{{block.super}}
»<a href="/journal/microentries/"> microentries</a>{% endblock %}
{% block title %}Journal Microentries{% endblock %}
{% block content %}
<br />
<div class="notice">
This page has an <a href="/journal/rss/latest_microentries/">RSS feed</a>.
</div>
{% 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 microentries 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 %}
|