aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki/templates
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-21 21:58:59 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-21 21:58:59 -0800
commitc719dcba2d37f1814aa2bae55947d77453f70b9c (patch)
tree1f6eb3bc497036c93b31118c58fbb142590cfcee /bn_django/git_wiki/templates
parenta1f72ac87a18fe1fcc0cf1a2eb8d69d89ba606df (diff)
downloadbnewnet-c719dcba2d37f1814aa2bae55947d77453f70b9c.tar.gz
bnewnet-c719dcba2d37f1814aa2bae55947d77453f70b9c.zip
fixed some xhtml nitty gritty, progress on git_wiki
Diffstat (limited to 'bn_django/git_wiki/templates')
-rw-r--r--bn_django/git_wiki/templates/git_wiki/base.html6
-rw-r--r--bn_django/git_wiki/templates/git_wiki/frontpage.html5
-rw-r--r--bn_django/git_wiki/templates/git_wiki/shortlog_table27
3 files changed, 31 insertions, 7 deletions
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 %}