aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse/templates/git_browse/tags_table
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/git_browse/templates/git_browse/tags_table')
-rw-r--r--bn_django/git_browse/templates/git_browse/tags_table23
1 files changed, 23 insertions, 0 deletions
diff --git a/bn_django/git_browse/templates/git_browse/tags_table b/bn_django/git_browse/templates/git_browse/tags_table
new file mode 100644
index 0000000..7df504a
--- /dev/null
+++ b/bn_django/git_browse/templates/git_browse/tags_table
@@ -0,0 +1,23 @@
+{% 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 %}