aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/templates/journal/entry_list.html
blob: 8902552459602b4566ec8e0722cf94e7d43961b1 (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 title %}Journal Entries{% endblock %}

{% block otherhead %}{{ block.super}}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/journal/rss/latest_entries/">
{% endblock %}

{% block content %}
<br />
<div class="notice">
This page has an <a href="/journal/rss/latest_entries/">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 }}">&laquo; previous</a> |
{% endif %} {% if has_next %}
<a href="./?page={{ next }}">next &raquo;</a>
{% endif %} {% endif %}
{% endblock %}