diff options
author | bnewbold <bnewbold@eta.mit.edu> | 2009-02-01 06:25:10 -0500 |
---|---|---|
committer | bnewbold <bnewbold@eta.mit.edu> | 2009-02-01 06:25:10 -0500 |
commit | c7b29da94d3b85ec91f0d5e2789db11a43473df5 (patch) | |
tree | a5502674da4a9ed8367f911112d34c094481e83c /bn_django/journal/templates/journal/entry_archive_month.html | |
parent | 0988ee83c8a8b24801624beae78ceba1bfa82d07 (diff) | |
download | bnewnet-c7b29da94d3b85ec91f0d5e2789db11a43473df5.tar.gz bnewnet-c7b29da94d3b85ec91f0d5e2789db11a43473df5.zip |
lots went on:
* rss feeds
* some admin interface stuff
* blah
running issues:
* admin interface with model inheretence?
* rss feeds: unicode cool?
* proper year/month implementation (don't want day)
* right side bar info
* dating issue (datetime vs date)
Diffstat (limited to 'bn_django/journal/templates/journal/entry_archive_month.html')
-rw-r--r-- | bn_django/journal/templates/journal/entry_archive_month.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bn_django/journal/templates/journal/entry_archive_month.html b/bn_django/journal/templates/journal/entry_archive_month.html new file mode 100644 index 0000000..a9e72da --- /dev/null +++ b/bn_django/journal/templates/journal/entry_archive_month.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 %} |