5def4c9e01
Including the tree as part of the summary gives a bit more information and provides an easy path into the tree. It does clutter things a bit, so this is an experiment and may be removed later.
17 lines
533 B
HTML
17 lines
533 B
HTML
<table class="nice ls">
|
|
% key_func = lambda (t, n, s): (t != 'tree', n.raw)
|
|
% for type, name, size in sorted(tree.ls(dirname.raw), key = key_func):
|
|
<tr class="{{type}}">
|
|
% if type == "blob":
|
|
<td class="name"><a href="{{treeroot}}/f={{name.url}}.html">
|
|
{{!name.html}}</a></td>
|
|
<td class="size">{{size}}</td>
|
|
% elif type == "tree":
|
|
<td class="name">
|
|
<a class="explicit" href="{{treeroot}}/{{name.url}}/">
|
|
{{!name.html}}/</a></td>
|
|
% end
|
|
</tr>
|
|
% end
|
|
</table>
|