2017-08-27 21:35:08 +03:00
|
|
|
<table class="nice toggable ls" id="ls">
|
2020-05-24 04:36:43 +03:00
|
|
|
% key_func = lambda x: (x[0] != 'tree', x[1].raw)
|
2017-08-27 21:17:26 +03:00
|
|
|
% 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>
|