From c719dcba2d37f1814aa2bae55947d77453f70b9c Mon Sep 17 00:00:00 2001
From: bnewbold <bnewbold@manus.(none)>
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 }}
-<link rel="STYLESHEET" type="text/css" href="style/git_wiki.css">
-<link rel="STYLESHEET" type="text/css" href="/style/git_wiki.css">
-<!--<link rel="STYLESHEET" type="text/css" href="http://static.bryannewbold.com/style/git_wiki.css">-->
+<link rel="STYLESHEET" type="text/css" href="style/git_wiki.css" />
+<link rel="STYLESHEET" type="text/css" href="/style/git_wiki.css" />
+<!--<link rel="STYLESHEET" type="text/css" href="http://static.bryannewbold.com/style/git_wiki.css" />-->
 
 {% 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 <a href="/timeline/">timeline</a>
 </div>
 
 <h3>Latest knowledge</h3>
-{% if latest_knowledge %}
-{% else %}
-None yet!
-{% endif %}
+{% include "git_wiki/shortlog_table" %}
 <hr />
 <h3>Latest comments</h3>
 {% 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 %}
+<table class="gitbrowser">
+{% for l in shortlog %}
+<tr>
+    <td class="date">
+        {{ l.date }}</td>
+    <td class="author">
+        {{ l.author }}</td>
+    <td class="description">
+        <a href="/k/commit/{{ l.hash }}/" class="description">
+        {{ l.description|truncatewords:10 }}</a></td>
+    <td class="shorthash">
+        {% if heads %}{% for h in heads.iteritems %}
+            {% ifequal h.1 l.hash %} 
+                <span style="head">[{{ h.0 }}]</span>
+            {% endifequal %}
+        {% endfor %}{% endif %} 
+        {% if tags %}{% for t in tags.iteritems %}
+                {% ifequal l.hash t.1 %}
+                <span style="tag">[{{ t.0 }}]</span>
+                {% endifequal %}{% endfor %}{% endif %}
+
+        <a href="/k/commit/{{ l.hash }}" class="subtle">
+        <span class="hash">{{ l.shorthash }}</span></a>...</td></tr>
+{% endfor %}
+</table>
+{% else %}No shortlog!{% endif %}
-- 
cgit v1.2.3