blob: 046d85cbb17ab790d7873352c8d0fbef69380883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{% extends "git_browse/base.html" %}
{% block gitbrowse %}
{% if all_objs %}
<h3>Tree sha1 hash:</h3><br /> {{ hash }}<br />
<h3>Directory listing:</h3>
{% for obj in all_objs %}
[{{obj.type}}]
{% ifequal obj.type 'blob'%}
<a href='/code/{{ object.slug }}/obj/{{ obj.id }}/'>{{obj.name}}</a> {% else %}
{% ifequal obj.type 'tree'%}
<a href='/code/{{object.slug}}/tree/{{ obj.id }}/'>{{obj.name}}</a>
{% else %}
<a href='/code/{{object.slug}}/obj/{{ obj.id }}/'>{{obj.name}}</a>
{% endifequal %}{% endifequal %}
<br />
{% endfor %}
{% endif %}
{% endblock %}
|