diff options
Diffstat (limited to 'bn_django/git_browse/templates/git_browse/heads_table')
| -rw-r--r-- | bn_django/git_browse/templates/git_browse/heads_table | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/bn_django/git_browse/templates/git_browse/heads_table b/bn_django/git_browse/templates/git_browse/heads_table new file mode 100644 index 0000000..5840db0 --- /dev/null +++ b/bn_django/git_browse/templates/git_browse/heads_table @@ -0,0 +1,23 @@ +{% 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 %} + | 
