blob: ce10c10947cc06d0bd1d7eb2db7da1892a189d8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{% if all_objs %}
<table class="gitbrowser">
{% for o in all_objs %}
<tr> <td class="objtype">
{{o.type}}</td>
<td class="filemode">
{{ o.mode }} </td>
<td class="filename">
{% ifequal o.type 'blob' %}
<a href='/code/{{ object.slug }}/blob/{{ o.id }}/' class="blob">
{{o.name}}</a>
</td><td type="links">
<a href='/code/{{object.slug}}/tree/{{ o.id }}/'>log</a>
</td>
{% else %} {% ifequal o.type 'tree' %}
<a href='/code/{{object.slug}}/tree/{{ o.id }}/' class="tree">
{{o.name}}/</a>
</td><td type="links">
<a href='/code/{{object.slug}}/tree/{{ o.id }}/'>browse</a> |
<a href='/code/{{object.slug}}/tree/{{ o.id }}/zip/'>zip</a>
</td>
{% else %}
<a href='/code/{{object.slug}}/obj/{{ o.id }}/' class="blob">
{{o.name}}</a>
</td><td type="links">
</td>
{% endifequal %}{% endifequal %}
</tr>
{% endfor %}
</table>
{% else %}No contents!
{% endif %}
|