aboutsummaryrefslogtreecommitdiff
path: root/views/tree.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/tree.html')
-rw-r--r--views/tree.html18
1 files changed, 2 insertions, 16 deletions
diff --git a/views/tree.html b/views/tree.html
index 12c21b0..3f3829c 100644
--- a/views/tree.html
+++ b/views/tree.html
@@ -36,22 +36,8 @@
% end
</h3>
-<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="./f={{name.url}}.html">
- {{!name.html}}</a></td>
- <td class="size">{{size}}</td>
-% elif type == "tree":
- <td class="name">
- <a class="explicit" href="./{{name.url}}/">
- {{!name.html}}/</a></td>
-% end
- </tr>
-% end
-</table>
+% kwargs = dict(repo = repo, tree=tree, treeroot=".")
+% include tree-list **kwargs
</body>
</html>