diff options
Diffstat (limited to 'bn_django/journal/templates/journal/entry_archive_year.html')
-rw-r--r-- | bn_django/journal/templates/journal/entry_archive_year.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bn_django/journal/templates/journal/entry_archive_year.html b/bn_django/journal/templates/journal/entry_archive_year.html new file mode 100644 index 0000000..a9e72da --- /dev/null +++ b/bn_django/journal/templates/journal/entry_archive_year.html @@ -0,0 +1,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 %} |