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/git_wiki/templates/git_wiki/commit.html | 17 ++++++++------ .../git_wiki/templates/git_wiki/frontpage.html | 8 ++++--- bn_django/git_wiki/templates/git_wiki/item.html | 2 ++ .../git_wiki/templates/git_wiki/newitems_table | 27 ++++++++++++++++++++++ 4 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 bn_django/git_wiki/templates/git_wiki/newitems_table (limited to 'bn_django/git_wiki/templates') diff --git a/bn_django/git_wiki/templates/git_wiki/commit.html b/bn_django/git_wiki/templates/git_wiki/commit.html index 5eb5dd0..8497311 100644 --- a/bn_django/git_wiki/templates/git_wiki/commit.html +++ b/bn_django/git_wiki/templates/git_wiki/commit.html @@ -1,24 +1,27 @@ {% extends "git_wiki/base.html" %} +{% block title %}Commit: {{ commit.committer_date}} +{% endblock %} {% block gitwiki %} {% if commit %} -

Commit sha1 hash

+ Commit sha1 hash: {{ commit.id }}
-

Parent sha1 hash

+ Parent sha1 hash: {% if commit.parenthash %} {{ commit.parenthash }} {% else %}No parent... root commit?{% endif %} -

Tree sha1 hash

+
+ Tree sha1 hash: {% if commit.treehash %} {{ commit.treehash }} {% else %}No tree hash?{% endif %} -

Author

+
Author: {{ commit.author }}
-

Author Date

+ Author Date: {{ commit.author_date }}
-

Committer

+ Committer: {{ commit.committer }}
-

Committer Date

+ Committer Date: {{ commit.committer_date }}
{% if commit.rawdiff %}
{{ commit.rawdiff }}
diff --git a/bn_django/git_wiki/templates/git_wiki/frontpage.html b/bn_django/git_wiki/templates/git_wiki/frontpage.html index 85698c4..0c8d245 100644 --- a/bn_django/git_wiki/templates/git_wiki/frontpage.html +++ b/bn_django/git_wiki/templates/git_wiki/frontpage.html @@ -20,12 +20,14 @@ If you're curious you can track my work in the code section.
For more recent content see the timeline
-

Browse the knowledge!

-

Latest knowledge

+

Browse the knowledge!

+

Latest knowledge items

+{% include "git_wiki/newitems_table" %} +

Latest knowledge commits

{% include "git_wiki/shortlog_table" %} -

Latest comments

{% if latest_comments %} +{% include "newcomments_table" %} {% else %} None yet! {% endif %} diff --git a/bn_django/git_wiki/templates/git_wiki/item.html b/bn_django/git_wiki/templates/git_wiki/item.html index 4258b1c..d9d33c9 100644 --- a/bn_django/git_wiki/templates/git_wiki/item.html +++ b/bn_django/git_wiki/templates/git_wiki/item.html @@ -31,6 +31,8 @@ {% block commentary %}
{% load comments %} +

IMPORTANT: Comments only apply to this revision of the item! +They will be lost if the item is updated.

Post a comment

{% if user.is_authenticated %} {% comment_form for git_wiki.item item.id with is_public yes %} diff --git a/bn_django/git_wiki/templates/git_wiki/newitems_table b/bn_django/git_wiki/templates/git_wiki/newitems_table new file mode 100644 index 0000000..d86c538 --- /dev/null +++ b/bn_django/git_wiki/templates/git_wiki/newitems_table @@ -0,0 +1,27 @@ +{% if newitems %} + + {% for i in newitems reversed %} + + {% else %} {% ifequal i.type 'tree' %} + + {{i.path}}/ + + {% else %} + + {{i.name}} + + {% endifequal %}{% endifequal %} + + {% endfor %} +
+ {% ifequal i.type 'blob' %} + + {{i.path}} + + pdf + + browse + +
+{% else %}No new items! +{% endif %} -- cgit v1.2.3