Parent: [3abb2e] (diff)

Child: [7af05e] (diff)

Download this file

tree_widget.html    32 lines (31 with data), 817 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
<table xmlns:py="http://genshi.edgewall.org/">
<thead>
<tr>
<th>Kind</th>
<th>File</th>
<th>Date</th>
<th>Author</th>
<th>Commit</th>
</tr>
</thead>
<tbody>
<tr py:if="tree._parent">
<td></td>
<td><a href="..">[Up one dir]</a></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr py:for="dirent in tree.ls()">
<td>$dirent.kind</td>
<td><a href="${h.really_unicode(dirent.href)}">${h.really_unicode(dirent.name)}</a></td>
<td py:if="dirent.date">${h.ago(dirent.date)}</td>
<td py:if="not dirent.date"/>
<td>$dirent.last_author</td>
<td>
<a py:if="dirent.commit" href="${dirent.commit.url()}">
${h.text.truncate(str(dirent.commit._id), 10)}
</a></td>
</tr>
</tbody>
</table>