From c719dcba2d37f1814aa2bae55947d77453f70b9c Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 21 Feb 2007 21:58:59 -0800 Subject: fixed some xhtml nitty gritty, progress on git_wiki --- bn_django/git_wiki/templates/git_wiki/base.html | 6 ++--- .../git_wiki/templates/git_wiki/frontpage.html | 5 +--- .../git_wiki/templates/git_wiki/shortlog_table | 27 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 bn_django/git_wiki/templates/git_wiki/shortlog_table (limited to 'bn_django/git_wiki/templates') diff --git a/bn_django/git_wiki/templates/git_wiki/base.html b/bn_django/git_wiki/templates/git_wiki/base.html index 6107c04..ed88aa1 100644 --- a/bn_django/git_wiki/templates/git_wiki/base.html +++ b/bn_django/git_wiki/templates/git_wiki/base.html @@ -2,9 +2,9 @@ {% block stylesheets %} {{ block.super }} - - - + + + {% endblock %} diff --git a/bn_django/git_wiki/templates/git_wiki/frontpage.html b/bn_django/git_wiki/templates/git_wiki/frontpage.html index 897bf8b..b4c4cbd 100644 --- a/bn_django/git_wiki/templates/git_wiki/frontpage.html +++ b/bn_django/git_wiki/templates/git_wiki/frontpage.html @@ -22,10 +22,7 @@ For more recent content see the timeline

Latest knowledge

-{% if latest_knowledge %} -{% else %} -None yet! -{% endif %} +{% include "git_wiki/shortlog_table" %}

Latest comments

{% if latest_comments %} diff --git a/bn_django/git_wiki/templates/git_wiki/shortlog_table b/bn_django/git_wiki/templates/git_wiki/shortlog_table new file mode 100644 index 0000000..8d30f80 --- /dev/null +++ b/bn_django/git_wiki/templates/git_wiki/shortlog_table @@ -0,0 +1,27 @@ +{% if shortlog %} + +{% for l in shortlog %} + + + + + +{% endfor %} +
+ {{ l.date }} + {{ l.author }} + + {{ l.description|truncatewords:10 }} + {% if heads %}{% for h in heads.iteritems %} + {% ifequal h.1 l.hash %} + [{{ h.0 }}] + {% endifequal %} + {% endfor %}{% endif %} + {% if tags %}{% for t in tags.iteritems %} + {% ifequal l.hash t.1 %} + [{{ t.0 }}] + {% endifequal %}{% endfor %}{% endif %} + + + {{ l.shorthash }}...
+{% else %}No shortlog!{% endif %} -- cgit v1.2.3