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) --- .../feeds/latest_entries_description.html | 1 + .../templates/feeds/latest_entries_title.html | 1 + .../templates/feeds/latest_links_description.html | 1 + .../templates/feeds/latest_links_title.html | 1 + .../feeds/latest_microentries_description.html | 1 + .../templates/feeds/latest_microentries_title.html | 1 + .../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 ++++++++++++------- 15 files changed, 194 insertions(+), 19 deletions(-) create mode 100644 bn_django/journal/templates/feeds/latest_entries_description.html create mode 100644 bn_django/journal/templates/feeds/latest_entries_title.html create mode 100644 bn_django/journal/templates/feeds/latest_links_description.html create mode 100644 bn_django/journal/templates/feeds/latest_links_title.html create mode 100644 bn_django/journal/templates/feeds/latest_microentries_description.html create mode 100644 bn_django/journal/templates/feeds/latest_microentries_title.html 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') diff --git a/bn_django/journal/templates/feeds/latest_entries_description.html b/bn_django/journal/templates/feeds/latest_entries_description.html new file mode 100644 index 0000000..6f28865 --- /dev/null +++ b/bn_django/journal/templates/feeds/latest_entries_description.html @@ -0,0 +1 @@ +{{obj.html_content|safe|truncatewords_html:300}} diff --git a/bn_django/journal/templates/feeds/latest_entries_title.html b/bn_django/journal/templates/feeds/latest_entries_title.html new file mode 100644 index 0000000..e12d8e1 --- /dev/null +++ b/bn_django/journal/templates/feeds/latest_entries_title.html @@ -0,0 +1 @@ +{{obj.title|safe}} diff --git a/bn_django/journal/templates/feeds/latest_links_description.html b/bn_django/journal/templates/feeds/latest_links_description.html new file mode 100644 index 0000000..32c8857 --- /dev/null +++ b/bn_django/journal/templates/feeds/latest_links_description.html @@ -0,0 +1 @@ +{{ obj.html_caption|safe|truncatewords_html:200}} diff --git a/bn_django/journal/templates/feeds/latest_links_title.html b/bn_django/journal/templates/feeds/latest_links_title.html new file mode 100644 index 0000000..65599bb --- /dev/null +++ b/bn_django/journal/templates/feeds/latest_links_title.html @@ -0,0 +1 @@ +{{ obj.title }}: {{ obj.url }} diff --git a/bn_django/journal/templates/feeds/latest_microentries_description.html b/bn_django/journal/templates/feeds/latest_microentries_description.html new file mode 100644 index 0000000..427823d --- /dev/null +++ b/bn_django/journal/templates/feeds/latest_microentries_description.html @@ -0,0 +1 @@ +{{obj.html_content|safe|truncatewords_html:160}} diff --git a/bn_django/journal/templates/feeds/latest_microentries_title.html b/bn_django/journal/templates/feeds/latest_microentries_title.html new file mode 100644 index 0000000..d992ff6 --- /dev/null +++ b/bn_django/journal/templates/feeds/latest_microentries_title.html @@ -0,0 +1 @@ +{{obj.title}} 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 %}