diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2017-08-27 20:17:26 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2017-08-27 20:17:26 +0200 |
commit | 5def4c9e01c87073d743a71827fee1be0ee41881 (patch) | |
tree | 3dc436a17b12c94316d93d72011fea0f03878d2b /views/tree.html | |
parent | 891a9443817329492c75ad99b8ff8899c460dee1 (diff) | |
download | git-arr-fork-5def4c9e01c87073d743a71827fee1be0ee41881.zip |
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.
Diffstat (limited to 'views/tree.html')
-rw-r--r-- | views/tree.html | 18 |
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> |