e1349d418c
As an experiment, make the sections of the summary to be toggable. This can help readability, although it's unclear if it's worth the additional complexity and could be removed later.
17 lines
550 B
HTML
17 lines
550 B
HTML
<table class="nice toggable ls" id="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>
|