% if not dirname.raw:
% relroot = './'
% else:
% relroot = '../' * (len(dirname.split('/')) - 1)
% end
git » {{repo.name}} »
{{repo.branch}} » {{dirname.unicode}}
[{{repo.branch}}] /
% base = smstr(relroot)
% for c in dirname.split('/'):
% if not c.raw:
% continue
% end
{{c.unicode}} /
% base += c + '/'
% end
% 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":
{{!name.html}} |
{{size}} |
% elif type == "tree":
{{!name.html}}/ |
% end
% end