diff options
Diffstat (limited to 'bn_django')
-rw-r--r-- | bn_django/git_browse/templates/git_browse/repository_info.html | 47 |
1 files changed, 2 insertions, 45 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 %} |