From 5def4c9e01c87073d743a71827fee1be0ee41881 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sun, 27 Aug 2017 19:17:26 +0100 Subject: views: Include the root tree in the summary 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. --- views/tree-list.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 views/tree-list.html (limited to 'views/tree-list.html') diff --git a/views/tree-list.html b/views/tree-list.html new file mode 100644 index 0000000..5eea1aa --- /dev/null +++ b/views/tree-list.html @@ -0,0 +1,16 @@ + +% key_func = lambda (t, n, s): (t != 'tree', n.raw) +% for type, name, size in sorted(tree.ls(dirname.raw), key = key_func): + +% if type == "blob": + + +% elif type == "tree": + +% end + +% end +
+ {{!name.html}}{{size}} + + {{!name.html}}/
-- cgit v1.2.3