aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-20 17:47:12 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-20 17:47:12 -0800
commit3395a94951e7f9dce5c774b7fb38159052751869 (patch)
tree84334b853e6b61ff8f27e2026f319aa5bc8db606
parent855f0613ed1c0fe28f62f105c1433d29cec7fa86 (diff)
downloadbnewnet-3395a94951e7f9dce5c774b7fb38159052751869.tar.gz
bnewnet-3395a94951e7f9dce5c774b7fb38159052751869.zip
git_browse: moved heads_table and tags_table to seperate files
-rw-r--r--bn_django/git_browse/templates/git_browse/repository_info.html47
-rw-r--r--static/style/git_browse.css5
2 files changed, 3 insertions, 49 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 b3028a2..51794d3 100644
--- a/bn_django/git_browse/templates/git_browse/repository_info.html
+++ b/bn_django/git_browse/templates/git_browse/repository_info.html
@@ -6,52 +6,9 @@
<h3>Shortlog (<a href="/code/{{object.slug}}/log/">full log</a>)</h3>
<pre>{{ shortlog }}</pre>
<h3>Heads (<a href="/code/{{object.slug}}/tree/">browse</a>)</h3>
-{% 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="commit_hash">
- <a href="/code/{{object.slug}}/obj/{{ h.1 }}" class="subtle">
- {{ h.1 }}</a>
- {% for t in tags.iteritems %}
- {% ifequal h.1 t.1 %}
- <a href="/code/{{object.slug}}/tag/{{ h.1 }}/" class="tag">
- [{{ t.0 }}]</a>
- {% endifequal %}{% endfor %}
- </td></tr>
-{% endfor %}
-</table>
-{% else %}No heads!{% endif %}
+{% include "git_browse/heads_table" %}
<h3>Tags (<a href="/code/{{object.slug}}/tree/">browse</a>)</h3>
-{% 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="commit_hash">
- <a href="/code/{{object.slug}}/obj/{{ t.1 }}" class="subtle">
- <span class="hash">{{ t.1 }}</span></a>
- {% for t in tags.iteritems %}
- {% ifequal h.1 t.1 %}
- <a href="/code/{{object.slug}}/tag/{{ h.1 }}/" class="tag">
- [{{ t.0 }}]</a>
- {% endifequal %}</td></tr>
- {% endfor %}
-{% endfor %}
-</table>
-{% else %}No tags!{% endif %}
+{% 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 %}
diff --git a/static/style/git_browse.css b/static/style/git_browse.css
index a88147d..44b884b 100644
--- a/static/style/git_browse.css
+++ b/static/style/git_browse.css
@@ -8,7 +8,7 @@ pre.large {
table.gitbrowser {
width: 100%;
- border-spacing: 2px;
+ border-spacing: 4px;
}
table.gitbrowser tr {
width: 100%;
@@ -28,8 +28,5 @@ td.hash {
width: 100px;
overflow: hidden;
text-align: right;
-}
-span.hash {
font-family: courier;
}
-