Parent: [04544e] (diff)

Child: [6d51e4] (diff)

Download this file

tree_widget.html    42 lines (41 with data), 894 Bytes

 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
33
34
35
36
37
38
39
40
41
<table>
<thead>
<tr>
<th>Kind</th>
<th>File</th>
<th>Date</th>
<th>Author</th>
<th>Commit</th>
</tr>
</thead>
<tbody>
{% if tree._parent %}
<tr>
<td></td>
<td><a href="..">[Up one dir]</a></td>
<td></td>
<td></td>
<td></td>
</tr>
{% endif %}
{% for dirent in tree.ls() %}
<tr>
<td>{{dirent.kind}}</td>
<td><a href="{{h.really_unicode(dirent.href)}}">{{h.really_unicode(dirent.name)}}</a></td>
{% if dirent.date %}
<td>{{h.ago(dirent.date)}}</td>
{% else %}
<td></td>
{% endif %}
<td>{{dirent.last_author}}</td>
<td>
{% if dirent.commit %}
<a href="{{dirent.commit.url()}}">
{{h.text.truncate(dirent.commit._id|string, 10)}}
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>