Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47d500715a | ||
|
|
eb7cadd64f | ||
|
|
48a00cb460 |
4
utils.py
4
utils.py
@@ -89,7 +89,9 @@ def colorize_blob(fname, s):
|
||||
|
||||
formatter = HtmlFormatter(encoding = 'utf-8',
|
||||
cssclass = 'source_code',
|
||||
linenos = 'table')
|
||||
linenos = 'table',
|
||||
anchorlinenos = True,
|
||||
lineanchors = 'line')
|
||||
|
||||
return highlight(s, lexer, formatter)
|
||||
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
<a href="{{relroot}}">[{{repo.branch}}]</a> /
|
||||
% base = smstr(relroot)
|
||||
% for c in dirname.split('/'):
|
||||
% if not c.raw: continue
|
||||
% if not c.raw:
|
||||
% continue
|
||||
% end
|
||||
<a href="{{base.url}}{{c.url}}/">{{c.unicode}}</a> /
|
||||
% base += c + '/'
|
||||
% end
|
||||
|
||||
@@ -27,14 +27,16 @@
|
||||
<a href="{{relroot}}">[{{repo.branch}}]</a> /
|
||||
% base = smstr(relroot)
|
||||
% for c in dirname.split('/'):
|
||||
% if not c.raw: continue
|
||||
% if not c.raw:
|
||||
% continue
|
||||
% end
|
||||
<a href="{{base.url}}{{c.url}}/">{{c.unicode}}</a> /
|
||||
% base += c + '/'
|
||||
% end
|
||||
</h3>
|
||||
|
||||
<table class="nice ls">
|
||||
% key_func = lambda (t, n, s): (0 if t == 'tree' else 1, n.raw)
|
||||
% 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":
|
||||
|
||||
Reference in New Issue
Block a user