1 |
# |
x# |
2 |
# Copyright (c) 2003 by Benja Fallenstein |
# Copyright (c) 2003 by Benja Fallenstein |
3 |
# |
# |
4 |
# This file is part of Navidoc. |
# This file is part of Navidoc. |
27 |
|
|
28 |
__docformat__ = 'reStructuredText' |
__docformat__ = 'reStructuredText' |
29 |
|
|
|
import re, os |
|
|
|
|
30 |
import config |
import config |
31 |
|
|
32 |
from navidoc.utils.path import _slashify |
import re, os |
33 |
|
|
34 |
|
from navidoc.utils.path import * |
35 |
|
|
36 |
dbg = config.dbg.shorthand('navbar') |
dbg = config.dbg.shorthand('navbar') |
37 |
|
|
92 |
for el in tree.files: |
for el in tree.files: |
93 |
if el[0].endswith('index.html'): continue |
if el[0].endswith('index.html'): continue |
94 |
s += '<li class="boxitem"><a href="%s">%s</a></li>\n' % \ |
s += '<li class="boxitem"><a href="%s">%s</a></li>\n' % \ |
95 |
(el[0][len(_slashify(config.working_directory)):len(el[0])], el[1]) |
(el[0][len(slashify(config.working_directory)):len(el[0])], el[1]) |
96 |
if len(el) > 2: |
if len(el) > 2: |
97 |
s += simpleNavbar(el[2], indent+" ") |
s += simpleNavbar(el[2], indent+" ") |
98 |
return s |
return s |