/[navidoc]/navidoc/navidoc/modules/navbar.py
ViewVC logotype

Diff of /navidoc/navidoc/modules/navbar.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by benja, Fri Mar 28 10:00:38 2003 UTC revision 1.6 by humppake, Fri Mar 28 13:08:57 2003 UTC
# Line 1  Line 1 
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.
# Line 27  Line 27 
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    
# Line 92  def simpleNavbar(tree, indent=""): Line 92  def simpleNavbar(tree, indent=""):
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+"&nbsp;&nbsp;")              s += simpleNavbar(el[2], indent+"&nbsp;&nbsp;")
98      return s      return s

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26