% 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
{{c.unicode}} /
% base += c + '/'
% end
% key_func = lambda (t, n, s): (0 if t == 'tree' else 1, 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