aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bn_django/git_browse/templates/git_browse/blob.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/bn_django/git_browse/templates/git_browse/blob.html b/bn_django/git_browse/templates/git_browse/blob.html
new file mode 100644
index 0000000..1fb1437
--- /dev/null
+++ b/bn_django/git_browse/templates/git_browse/blob.html
@@ -0,0 +1,13 @@
+{% extends "git_browse/base.html" %}
+
+{% block gitbrowse %} {% if contents %}
+ <h3>Blob sha1 hash</h3>
+ {{ hash }}<br />
+ <h3>Size</h3>
+ {{ size|filesizeformat }}<br />
+ <h3><a href="zip">Download zip</a></h3>
+ <h3>Raw contents</h3>
+ <pre class="large">{{ contents }}</pre>
+{% else %}
+ <h3>No such object: {{ hash }}</h3>
+{% endif %} {% endblock %}