summaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse/templates
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-08 00:40:46 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-08 00:40:46 -0800
commit9077a48cf9aeb06ddd751cfa7497fd636ed489a6 (patch)
treed2e946818d743c9c5b72883d60a208b07c9f7710 /bn_django/git_browse/templates
parentb88372f0327976c31e6b508b26729bab60743f82 (diff)
downloadbnewnet-9077a48cf9aeb06ddd751cfa7497fd636ed489a6.tar.gz
bnewnet-9077a48cf9aeb06ddd751cfa7497fd636ed489a6.zip
first work on git_browser app
for now just returns raw text from shell commands also tries to track repositories... but UI for selecting FilePathFields sucks so have to chose slugs manually for now... i think django support for this will come soon so i'm not bothering.
Diffstat (limited to 'bn_django/git_browse/templates')
-rw-r--r--bn_django/git_browse/templates/git_browse/base.html1
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_list.html44
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_raw_output.html29
3 files changed, 74 insertions, 0 deletions
diff --git a/bn_django/git_browse/templates/git_browse/base.html b/bn_django/git_browse/templates/git_browse/base.html
new file mode 100644
index 0000000..94d9808
--- /dev/null
+++ b/bn_django/git_browse/templates/git_browse/base.html
@@ -0,0 +1 @@
+{% extends "base.html" %}
diff --git a/bn_django/git_browse/templates/git_browse/repository_list.html b/bn_django/git_browse/templates/git_browse/repository_list.html
new file mode 100644
index 0000000..a089fec
--- /dev/null
+++ b/bn_django/git_browse/templates/git_browse/repository_list.html
@@ -0,0 +1,44 @@
+{% extends "git_browse/base.html" %}
+{# {% load markup %} #}
+
+{% block path %}code{% endblock %}
+{% block title %}Code Repositories{% endblock %}
+
+{% block content %}
+{% 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>
+ </div>
+ <h3><a href="{{ item.slug }}/">{{ item.name }}</a> (aka {{ item.slug }})</h3>
+ {{ item.description }}
+{% endfor %}
+{% else %}
+<p>No repositories have been set up yet.</p>
+{% endif %}
+
+
+{% if is_paginated %}
+{% if has_previous %}
+<a href="./?page={{ previous }}">&laquo; previous</a> |
+{% endif %}
+{% if has_next %}
+<a href="./?page={{ next }}">next &raquo;</a>
+{% endif %}
+{% endif %}
+
+<!--
+{% if not user.is_anonymous %}
+<p>
+ <a href="{{admin_url}}/photos/gallery/add/">Create a new gallery.</a>
+</p>
+{% else %}
+<p>
+ <a href="/accounts/login/?next={{ request.path }}">
+ Login</a> to create a new gallery.
+</p>
+{% endif %}
+-->
+
+{% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/repository_raw_output.html b/bn_django/git_browse/templates/git_browse/repository_raw_output.html
new file mode 100644
index 0000000..3ce6894
--- /dev/null
+++ b/bn_django/git_browse/templates/git_browse/repository_raw_output.html
@@ -0,0 +1,29 @@
+{% extends "git_browse/base.html" %}
+
+{% block path %}
+ <a href="../">code</a> &raquo;
+{% if object %}
+ <a href="/code/{{ object.slug }}/">{{ object.name }}</a>
+{% endif %}
+{% endblock %}
+
+{% block title %}
+{% if object %}
+Repository: {{ object.name }}
+{% endif %}
+{% endblock %}
+
+{% block content %}
+{% if object %}
+ {% if raw_content %}
+ <br />
+ <pre>
+
+{{ raw_content }}
+ </pre>
+ {% endif %}
+{% else %}
+<p>No such repository!</p>
+{% endif %}
+
+{% endblock %}