aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/templates/journal/microentry_arhive_year.html
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/journal/templates/journal/microentry_arhive_year.html')
-rw-r--r--bn_django/journal/templates/journal/microentry_arhive_year.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/bn_django/journal/templates/journal/microentry_arhive_year.html b/bn_django/journal/templates/journal/microentry_arhive_year.html
new file mode 100644
index 0000000..eca642d
--- /dev/null
+++ b/bn_django/journal/templates/journal/microentry_arhive_year.html
@@ -0,0 +1,31 @@
+{% extends "journal/base.html" %}
+{% load comments %}
+
+{% block path %}{{block.super}}
+ &raquo;<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 }}">&laquo; previous</a> |
+{% endif %} {% if has_next %}
+<a href="./?page={{ next }}">next &raquo;</a>
+{% endif %} {% endif %}
+{% endblock %}