summaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse/templates
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-18 18:47:15 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-18 18:47:15 -0800
commitde7fbaadb211650a73c68509f8b87cb93effdd2a (patch)
treea1ae85534c4716b10f94379148cb62115c5a1918 /bn_django/git_browse/templates
parent0c7c01d4ff1635cb7f04bed3d099b30b967f44bd (diff)
downloadbnewnet-de7fbaadb211650a73c68509f8b87cb93effdd2a.tar.gz
bnewnet-de7fbaadb211650a73c68509f8b87cb93effdd2a.zip
removed knowledge directory, filled in front page, continued git_browse
Diffstat (limited to 'bn_django/git_browse/templates')
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_info.html5
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_list.html7
-rw-r--r--bn_django/git_browse/templates/git_browse/tree.html12
3 files changed, 20 insertions, 4 deletions
diff --git a/bn_django/git_browse/templates/git_browse/repository_info.html b/bn_django/git_browse/templates/git_browse/repository_info.html
index bec150c..72f30b1 100644
--- a/bn_django/git_browse/templates/git_browse/repository_info.html
+++ b/bn_django/git_browse/templates/git_browse/repository_info.html
@@ -1,8 +1,11 @@
{% extends "git_browse/base.html" %}
{% block gitbrowse %}
+{{ object.description }}
{% if shortlog %}
-<h3>Shortlog</h3>
+<h3>Shortlog (<a href="/code/{{object.slug}}/log/">full log</a>)</h3>
<pre>{{ shortlog }}</pre>
+<h3>Filelist (<a href="/code/{{object.slug}}/tree/">browse</a>)</h3>
+<pre>{{ filelist }}</pre>
{% endif %}
{% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/repository_list.html b/bn_django/git_browse/templates/git_browse/repository_list.html
index a089fec..106c0e8 100644
--- a/bn_django/git_browse/templates/git_browse/repository_list.html
+++ b/bn_django/git_browse/templates/git_browse/repository_list.html
@@ -5,11 +5,14 @@
{% block title %}Code Repositories{% endblock %}
{% block content %}
+<div class="notice">
+Until this is better developed I would recommend trying <a href="http://git.bryannewbold.com/">gitweb</a>.
+</div>
{% if object_list %}
{% for item in object_list %}
<div class="righty"><br />
- <a href="{{ item.slug }}/tree/">tree</a> -
- <a href="{{ item.slug }}/changelog/">changelog</a>
+ <a href="{{ item.slug }}/tree/">browse</a> -
+ <a href="{{ item.slug }}/log/">changelog</a>
</div>
<h3><a href="{{ item.slug }}/">{{ item.name }}</a> (aka {{ item.slug }})</h3>
{{ item.description }}
diff --git a/bn_django/git_browse/templates/git_browse/tree.html b/bn_django/git_browse/templates/git_browse/tree.html
index 22162da..046d85c 100644
--- a/bn_django/git_browse/templates/git_browse/tree.html
+++ b/bn_django/git_browse/templates/git_browse/tree.html
@@ -1,10 +1,20 @@
{% extends "git_browse/base.html" %}
{% block gitbrowse %}
+
{% if all_objs %}
+ <h3>Tree sha1 hash:</h3><br /> {{ hash }}<br />
<h3>Directory listing:</h3>
{% for obj in all_objs %}
-[{{obj.type}}] <a href='../obj/{{ obj.id }}/'>{{obj.name}}</a> <br />
+[{{obj.type}}]
+ {% ifequal obj.type 'blob'%}
+ <a href='/code/{{ object.slug }}/obj/{{ obj.id }}/'>{{obj.name}}</a> {% else %}
+ {% ifequal obj.type 'tree'%}
+ <a href='/code/{{object.slug}}/tree/{{ obj.id }}/'>{{obj.name}}</a>
+ {% else %}
+ <a href='/code/{{object.slug}}/obj/{{ obj.id }}/'>{{obj.name}}</a>
+ {% endifequal %}{% endifequal %}
+ <br />
{% endfor %}
{% endif %}
{% endblock %}