From c7b29da94d3b85ec91f0d5e2789db11a43473df5 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 1 Feb 2009 06:25:10 -0500 Subject: 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) --- .../templates/journal/entry_archive_month.html | 35 ++++++++++++++++++++++ .../templates/journal/entry_archive_year.html | 35 ++++++++++++++++++++++ .../journal/templates/journal/entry_detail.html | 4 +-- .../journal/templates/journal/entry_list.html | 26 ++++++++++++---- .../templates/journal/linkartifact_list.html | 10 +++++++ .../templates/journal/microentry_arhive_month.html | 31 +++++++++++++++++++ .../templates/journal/microentry_arhive_year.html | 31 +++++++++++++++++++ .../templates/journal/microentry_detail.html | 4 +-- .../journal/templates/journal/microentry_list.html | 31 ++++++++++++------- 9 files changed, 188 insertions(+), 19 deletions(-) create mode 100644 bn_django/journal/templates/journal/entry_archive_month.html create mode 100644 bn_django/journal/templates/journal/entry_archive_year.html create mode 100644 bn_django/journal/templates/journal/microentry_arhive_month.html create mode 100644 bn_django/journal/templates/journal/microentry_arhive_year.html (limited to 'bn_django/journal/templates/journal') 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 %} +
+
+This page has an RSS feed. +
+See also artifacts, +microentries. + +
+{% if object_list %} + {% for item in object_list %} + {% get_comment_count for item as comment_count %} +

+ {% if item.title %}{{item.title}}{%else%}[Untitled]{%endif%}

+ {{item.date|date:"D, d/m/Y @H:i"}} by {{ item.author.username }}. + {{ comment_count }} comments +

+ {{ item.html_content|truncatewords_html:256 }} +

+ {% endfor %} +{% else %} +

No entries have been entered yet!

+{% endif %} + +{% if is_paginated %} {% if has_previous %} +« previous | +{% endif %} {% if has_next %} +next » +{% endif %} {% endif %} +{% endblock %} 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 %} +
+
+This page has an RSS feed. +
+See also artifacts, +microentries. + +
+{% if object_list %} + {% for item in object_list %} + {% get_comment_count for item as comment_count %} +

+ {% if item.title %}{{item.title}}{%else%}[Untitled]{%endif%}

+ {{item.date|date:"D, d/m/Y @H:i"}} by {{ item.author.username }}. + {{ comment_count }} comments +

+ {{ item.html_content|truncatewords_html:256 }} +

+ {% endfor %} +{% else %} +

No entries have been entered yet!

+{% endif %} + +{% if is_paginated %} {% if has_previous %} +« previous | +{% endif %} {% if has_next %} +next » +{% endif %} {% endif %} +{% endblock %} diff --git a/bn_django/journal/templates/journal/entry_detail.html b/bn_django/journal/templates/journal/entry_detail.html index 9c74ed6..b68e4b6 100644 --- a/bn_django/journal/templates/journal/entry_detail.html +++ b/bn_django/journal/templates/journal/entry_detail.html @@ -1,8 +1,8 @@ {% extends "journal/base.html" %} -{# {% load markup %} #} {% load comments %} + {% block path %}{{ block.super }} - » {{ object.title }} + » {{ object.title }} {% endblock %} {% block title %} diff --git a/bn_django/journal/templates/journal/entry_list.html b/bn_django/journal/templates/journal/entry_list.html index caa07af..8902552 100644 --- a/bn_django/journal/templates/journal/entry_list.html +++ b/bn_django/journal/templates/journal/entry_list.html @@ -1,18 +1,34 @@ {% extends "journal/base.html" %} -{# {% load markup %} #} +{% load comments %} {% block title %}Journal Entries{% endblock %} +{% block otherhead %}{{ block.super}} + +{% endblock %} + {% block content %}
+
+This page has an RSS feed. +
+See also artifacts, +microentries. + +
{% if object_list %} - {% else %} -

No entries have been entered yet.

+

No entries have been entered yet!

{% endif %} {% if is_paginated %} {% if has_previous %} diff --git a/bn_django/journal/templates/journal/linkartifact_list.html b/bn_django/journal/templates/journal/linkartifact_list.html index 829e627..51e9ebe 100644 --- a/bn_django/journal/templates/journal/linkartifact_list.html +++ b/bn_django/journal/templates/journal/linkartifact_list.html @@ -1,5 +1,9 @@ {% extends "journal/base.html" %} +{% block otherhead %}{{ block.super}} + +{% endblock %} + {% block path %}artifacts » links {% endblock %} @@ -8,6 +12,12 @@ {% block content %}
+
+This page has an RSS feed. +
+microentries. +
+ {% if object_list %}