From 953fc002832a9afe59372bf513ef167916608e05 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 7 Mar 2007 14:56:46 -0800 Subject: comments progress, style changes --- bn_django/templates/about.html | 2 +- bn_django/templates/credits.html | 2 +- bn_django/templates/frontpage.html | 10 +++++++++- bn_django/templates/newcomments_table | 26 ++++++++++++++++++++++++++ 4 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 bn_django/templates/newcomments_table (limited to 'bn_django/templates') diff --git a/bn_django/templates/about.html b/bn_django/templates/about.html index c9f9ce4..1ca9d60 100644 --- a/bn_django/templates/about.html +++ b/bn_django/templates/about.html @@ -10,7 +10,7 @@ {% block content %}

- the author
the perp
diff --git a/bn_django/templates/credits.html b/bn_django/templates/credits.html index b96d2a9..d1322b9 100644 --- a/bn_django/templates/credits.html +++ b/bn_django/templates/credits.html @@ -15,5 +15,5 @@ This site uses a variety of delicious software!

text editor

vim! fuck emacs!

versioning system

-

I use git as a revisioning system for the knowledge wiki and my software (including this site!). +

I use git as a revisioning system for the knowledge wiki and my software (including this site!). {% endblock %} diff --git a/bn_django/templates/frontpage.html b/bn_django/templates/frontpage.html index 1a7acc2..46906ef 100644 --- a/bn_django/templates/frontpage.html +++ b/bn_django/templates/frontpage.html @@ -35,7 +35,14 @@ For more recent content see the timeline

-
Latest knowledge
+
Latest knowledge items
+{% if newitems %} +{% include "git_wiki/newitems_table" %} +{% else %} +None yet! +{% endif %} +
+
Latest knowledge commits
{% if latest_knowledge %} {% include "newknowldge_table" %} {% else %} @@ -46,6 +53,7 @@ None yet!
Latest comments
{% if latest_comments %} +{% include "newcomments_table" %} {% else %} None yet! {% endif %} diff --git a/bn_django/templates/newcomments_table b/bn_django/templates/newcomments_table new file mode 100644 index 0000000..6c38d10 --- /dev/null +++ b/bn_django/templates/newcomments_table @@ -0,0 +1,26 @@ + +{% for c in latest_comments %} + + + + + +{% endfor %} +{% for c in latest_freecomments %} + + + + + +{% endfor %} +
+ {{ c.submit_date|date:"F jS" }} + {% if c.user.username %}{{ c.user.username }} + {% else %}anonymous{% endif%} + + {{ c.content_type.name }}
+ {{ c.submit_date|date:"F jS" }} + {% if c.person_name %}{{c.person_name}}{% else %}anonymous{% endif %} + + + {{ c.content_type.name }}
-- cgit v1.2.3