% if not dirname.raw: % reltree = './' % else: % reltree = '../' * (len(dirname.split('/')) - 1) % end % relroot = reltree + '../' * (len(branch.split('/')) - 1) git » {{repo.name}} » {{branch}} » {{dirname.unicode}}

git » {{repo.name}} » {{branch}} » tree

[{{branch}}] / % base = smstr(reltree) % 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": % elif type == "tree": % end % end
{{!name.html}} {{size}} {{!name.html}}/