aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse/templates
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-10-25 19:40:32 +0000
committerbnewbold <bnewbold@robocracy.org>2010-10-25 19:41:52 +0000
commit1ad7cb33abfac55a9be2f1d889c369fd1b43df2f (patch)
treed8846689db0c2ddcc230ef33487c84b8e41ff18e /bn_django/git_browse/templates
parentbb7258b4be225ee072bf0002ce5f1a87446105ad (diff)
downloadbnewnet-1ad7cb33abfac55a9be2f1d889c369fd1b43df2f.tar.gz
bnewnet-1ad7cb33abfac55a9be2f1d889c369fd1b43df2f.zip
changes for adelie
Diffstat (limited to 'bn_django/git_browse/templates')
-rw-r--r--bn_django/git_browse/templates/git_browse/base.html37
-rw-r--r--bn_django/git_browse/templates/git_browse/blob.html18
-rw-r--r--bn_django/git_browse/templates/git_browse/commit.html36
-rw-r--r--bn_django/git_browse/templates/git_browse/full_log.html17
-rw-r--r--bn_django/git_browse/templates/git_browse/heads_table23
-rw-r--r--bn_django/git_browse/templates/git_browse/obj.html16
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_info.html14
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_list.html50
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_raw_output.html8
-rw-r--r--bn_django/git_browse/templates/git_browse/shortlog_table29
-rw-r--r--bn_django/git_browse/templates/git_browse/tags_table23
-rw-r--r--bn_django/git_browse/templates/git_browse/tree.html11
-rw-r--r--bn_django/git_browse/templates/git_browse/tree_table32
13 files changed, 0 insertions, 314 deletions
diff --git a/bn_django/git_browse/templates/git_browse/base.html b/bn_django/git_browse/templates/git_browse/base.html
deleted file mode 100644
index 611d11d..0000000
--- a/bn_django/git_browse/templates/git_browse/base.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{% extends "base.html" %}
-
-{% block stylesheets %}
-{{ block.super }}
-<link rel="STYLESHEET" type="text/css" href="/static/style/git_browse.css" />
-{% endblock %}
-
-{% block path %}
-{{ block.super }}
-<a href="/code">code</a>
-{% if object %}
- &raquo; <a href="/code/{{ object.slug }}/">{{ object.name }}</a>
- [<a href="/code/{{ object.slug }}/tree/">browse</a>,
- <a href="/code/{{ object.slug }}/log/">log</a>]
-{% endif %}
-{% endblock %}
-
-{% block title %}
-{% if object %}
-{{ object.name }}
-{% endif %}
-{% endblock %}
-
-{% block content %}
-{% if object %}
- {% block gitbrowse %}
- {% endblock %}
- <br />
- <span class="righty">
- <a href="/code/{{ object.slug }}/tree/">browse tree</a> - <a href="/code/{{ object.slug }}/log">full log</a>
- </span>
- <br />
-{% else %}
-<p>No such repository!</p>
-{% endif %}
-
-{% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/blob.html b/bn_django/git_browse/templates/git_browse/blob.html
deleted file mode 100644
index 853c034..0000000
--- a/bn_django/git_browse/templates/git_browse/blob.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "git_browse/base.html" %}
-
-{% block gitbrowse %} {% if contents %}
- <h3>Blob sha1 hash</h3>
- {{ hash }}<br />
- <h3>Size</h3>
- {{ size|filesizeformat }}<br />
- <h3>Raw contents</h3>
- {% if pretty_contents %}
- <pre class="large">{{ pretty_diff }}</pre>
- {% else %}
- {% if contents %}
- <pre class="large">{{ contents|escape|wordwrap:80 }}</pre>
- {% else %}No contents{% endif %}
- {% endif %}
-{% else %}
- <h3>No such object: {{ hash }}</h3>
-{% endif %} {% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/commit.html b/bn_django/git_browse/templates/git_browse/commit.html
deleted file mode 100644
index b586eb8..0000000
--- a/bn_django/git_browse/templates/git_browse/commit.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends "git_browse/base.html" %}
-{% block stylesheets %}{{ block.super }}
-<link rel="STYLESHEET" type="text/css" href="/static/style/pygments-default.css" />
-{% endblock %}
-
-{% block gitbrowse %} {% if commit %}
- <h3>Commit sha1 hash</h3>
- <span class="hash">{{ commit.id }}</span><br />
- <h3>Parent sha1 hash</h3>
- {% if commit.parenthash %}
- <a href="/code/{{object.slug}}/commit/{{ commit.parenthash }}/">
- <span class="hash">{{ commit.parenthash }}</span></a>
- {% else %}No parent... root commit?{% endif %}
- <h3>Tree sha1 hash</h3>
- {% if commit.treehash %}
- <a href="/code/{{object.slug}}/tree/{{ commit.treehash }}/">
- <span class="hash">{{ commit.treehash }}</span></a>
- {% else %}No tree hash?{% endif %}
- <h3>Author</h3>
- {{ commit.author }}<br />
- <h3>Author Date</h3>
- {{ commit.author_date }}<br />
- <h3>Committer</h3>
- {{ commit.committer }}<br />
- <h3>Committer Date</h3>
- {{ commit.committer_date }}<br />
- {% if commit.pretty_diff %}
- <pre class="large">{{ commit.pretty_diff }}</pre>
- {% else %}
- {% if commit.rawdiff %}
- <pre class="large">{{ commit.rawdiff|escape|wordwrap:80 }}</pre>
- {% else %}No diff{% endif %}
- {% endif %}
-{% else %}
- <h3>No such object: {{ hash }}</h3>
-{% endif %} {% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/full_log.html b/bn_django/git_browse/templates/git_browse/full_log.html
deleted file mode 100644
index 913a3c4..0000000
--- a/bn_django/git_browse/templates/git_browse/full_log.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "git_browse/base.html" %}
-
-{% block gitbrowse %}
-{% if log_objs %}
- <h3>Full Log</h3><br />
- {% for item in log_objs %}
- <hr>
- <b>Hash: </b>
- <a href="/code/{{object.slug}}/commit/{{ item.hash }}/">
- <span class="hash">{{ item.hash }}</span></a>
- <br /><b>Author: </b>{{ item.author }}
- <br /><b>Date: </b>{{ item.date }}
- <br /><b>Comment: </b>
- <pre class="large">{{ item.comment|escape|wordwrap:80 }}</pre>
- {% endfor %}
-{% endif %}
-{% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/heads_table b/bn_django/git_browse/templates/git_browse/heads_table
deleted file mode 100644
index 5840db0..0000000
--- a/bn_django/git_browse/templates/git_browse/heads_table
+++ /dev/null
@@ -1,23 +0,0 @@
-{% if heads %}
-<table class="gitbrowser">
-{% for h in heads.iteritems %}
-<tr>
- <td class="head">
- <a href="/code/{{object.slug}}/commit/{{ h.1 }}" class="subtle">
- {{ h.0 }}</a></td>
- <td class="links">
- <a href="/code/{{object.slug}}/commit/{{ h.1 }}">commit</a> |
- <a href="/code/{{object.slug}}/commit/{{ h.1 }}/zip"> zip </a></td>
- <td class="hash">
- {% if tags %}{% for t in tags.iteritems %}
- {% ifequal h.1 t.1 %}
- <a href="/code/{{object.slug}}/tag/{{ t.1 }}/" class="tag">
- [{{ t.0 }}]</a>
- {% endifequal %}{% endfor %}{% endif %}
- <a href="/code/{{object.slug}}/obj/{{ h.1 }}" class="subtle">
- {{ h.1 }}</a>
- </td></tr>
-{% endfor %}
-</table>
-{% else %}No heads!{% endif %}
-
diff --git a/bn_django/git_browse/templates/git_browse/obj.html b/bn_django/git_browse/templates/git_browse/obj.html
deleted file mode 100644
index 669091b..0000000
--- a/bn_django/git_browse/templates/git_browse/obj.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends "git_browse/base.html" %}
-
-{% block gitbrowse %}
- {% if contents %}
- <h3>Object sha1 hash</h3>
- {{ hash }}<br />
- <h3>Size</h3>
- {{ size|filesizeformat }}<br />
- <h3>Type</h3>
- "{{ type }}"
- <h3>Raw Description</h3>
- <pre class="large">{{ contents }}</pre>
- {% else %}
- <h3>No such object: {{ hash }}</h3>
- {% endif %}
-{% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/repository_info.html b/bn_django/git_browse/templates/git_browse/repository_info.html
deleted file mode 100644
index f529c84..0000000
--- a/bn_django/git_browse/templates/git_browse/repository_info.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% extends "git_browse/base.html" %}
-
-{% block gitbrowse %}
-{{ object.description }}
-<h3>Shortlog (<a href="/code/{{object.slug}}/log/">full log</a>) (<a href="#"><strike>last commit</strike></a>)</h3>
-{% include "git_browse/shortlog_table" %}
-<h3>Heads (<a href="/code/{{object.slug}}/tree/">browse</a>)</h3>
-{% include "git_browse/heads_table" %}
-<h3>Tags (<a href="/code/{{object.slug}}/tree/">browse</a>)</h3>
-{% include "git_browse/tags_table" %}
-<h3>Filelist (<a href="/code/{{object.slug}}/tree/">browse tree</a>)</h3>
-{% if filelist %} <pre class="large">{{ filelist }}</pre>
-{% else %}No files!{% 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
deleted file mode 100644
index e409c74..0000000
--- a/bn_django/git_browse/templates/git_browse/repository_list.html
+++ /dev/null
@@ -1,50 +0,0 @@
-{% extends "git_browse/base.html" %}
-{# {% load markup %} #}
-
-{% block path %}code{% endblock %}
-{% block title %}Code Repositories{% endblock %}
-
-{% block content %}
-<div class="notice">
-Until this is better developed I would recommend trying <a href="http://git.bnewbold.net/">gitweb</a>.
-</div>
-<div class="notice">
-If you aren't familiar with git these repositories won't make much sense and will be frustrating!
-</div>
-{% if object_list %}
-{% for item in object_list %}
- <div class="righty"><br />
- <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 }}
-{% 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
deleted file mode 100644
index ee1c8e0..0000000
--- a/bn_django/git_browse/templates/git_browse/repository_raw_output.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends "git_browse/base.html" %}
-
-{% block content %}
- {% if raw_content %}
- <br />
- <pre> {{ raw_content }} </pre>
- {% endif %}
-{% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/shortlog_table b/bn_django/git_browse/templates/git_browse/shortlog_table
deleted file mode 100644
index 8a223ec..0000000
--- a/bn_django/git_browse/templates/git_browse/shortlog_table
+++ /dev/null
@@ -1,29 +0,0 @@
-{% 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="/code/{{object.slug}}/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 %}
- <a href="/code/{{object.slug}}/head/{{ h.1 }}/" class="head">
- [{{ h.0 }}]</a>
- {% endifequal %}
- {% endfor %}{% endif %}
- {% if tags %}{% for t in tags.iteritems %}
- {% ifequal l.hash t.1 %}
- <a href="/code/{{object.slug}}/tag/{{ t.1 }}/" class="tag">
- [{{ t.0 }}]</a>
- {% endifequal %}{% endfor %}{% endif %}
-
- <a href="/code/{{object.slug}}/commit/{{ l.hash }}" class="subtle">
- <span class="hash">{{ l.shorthash }}</span></a>...</td></tr>
-{% endfor %}
-</table>
-{% else %}No shortlog!{% endif %}
diff --git a/bn_django/git_browse/templates/git_browse/tags_table b/bn_django/git_browse/templates/git_browse/tags_table
deleted file mode 100644
index 7df504a..0000000
--- a/bn_django/git_browse/templates/git_browse/tags_table
+++ /dev/null
@@ -1,23 +0,0 @@
-{% if tags %}
-<table class="gitbrowser">
-{% for t in tags.iteritems %}
-<tr>
- <td class="tag">
- <a href="/code/{{object.slug}}/tag/{{ h.1 }}" class="subtle">
- {{ t.0 }}</a></td>
- <td class="links">
- <a href="/code/{{object.slug}}/tag/{{ t.1 }}">tag</a> |
- <a href="/code/{{object.slug}}/commit/{{ t.1 }}">commit</a> |
- <a href="/code/{{object.slug}}/commit/{{ t.1 }}/zip"> zip </a></td>
- <td class="hash">
- {% for h in heads.iteritems %}
- {% ifequal h.1 t.1 %}
- <a href="/code/{{object.slug}}/head/{{ h.1 }}/" class="head">
- [{{ h.0 }}]</a>
- {% endifequal %}
- {% endfor %}
- <a href="/code/{{object.slug}}/obj/{{ t.1 }}" class="subtle">
- <span class="hash">{{ t.1 }}</span></a></td></tr>
-{% endfor %}
-</table>
-{% else %}No tags!{% endif %}
diff --git a/bn_django/git_browse/templates/git_browse/tree.html b/bn_django/git_browse/templates/git_browse/tree.html
deleted file mode 100644
index b177af8..0000000
--- a/bn_django/git_browse/templates/git_browse/tree.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% extends "git_browse/base.html" %}
-
-{% block gitbrowse %}
-
- <h3>Tree sha1 hash:</h3>
- <span class="hash">{{ hash }}</span>
- <h3>Shortlog:</h3>
- {% include "git_browse/shortlog_table" %}
- <h3>Directory listing:</h3>
- {% include "git_browse/tree_table" %}
-{% endblock %}
diff --git a/bn_django/git_browse/templates/git_browse/tree_table b/bn_django/git_browse/templates/git_browse/tree_table
deleted file mode 100644
index ce10c10..0000000
--- a/bn_django/git_browse/templates/git_browse/tree_table
+++ /dev/null
@@ -1,32 +0,0 @@
-{% if all_objs %}
-<table class="gitbrowser">
- {% for o in all_objs %}
- <tr> <td class="objtype">
- {{o.type}}</td>
- <td class="filemode">
- {{ o.mode }} </td>
- <td class="filename">
- {% ifequal o.type 'blob' %}
- <a href='/code/{{ object.slug }}/blob/{{ o.id }}/' class="blob">
- {{o.name}}</a>
- </td><td type="links">
- <a href='/code/{{object.slug}}/tree/{{ o.id }}/'>log</a>
- </td>
- {% else %} {% ifequal o.type 'tree' %}
- <a href='/code/{{object.slug}}/tree/{{ o.id }}/' class="tree">
- {{o.name}}/</a>
- </td><td type="links">
- <a href='/code/{{object.slug}}/tree/{{ o.id }}/'>browse</a> |
- <a href='/code/{{object.slug}}/tree/{{ o.id }}/zip/'>zip</a>
- </td>
- {% else %}
- <a href='/code/{{object.slug}}/obj/{{ o.id }}/' class="blob">
- {{o.name}}</a>
- </td><td type="links">
- </td>
- {% endifequal %}{% endifequal %}
- </tr>
- {% endfor %}
-</table>
-{% else %}No contents!
-{% endif %}