Mon Jul 31 05:10:03 UTC 2006 Alberto Bertogli * Make browsing files in tree root easier. This patch makes it easier to browse files in the root of the tree, by making it simpler to return to the root tree view. diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2013-11-22 20:32:28.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2013-11-22 20:32:28.000000000 +0000 @@ -1776,21 +1776,24 @@ print_header() print_navbar(f = fname) filepath = os.path.dirname(fname) - print """ -
- """ - # and the linked, with links - parts = filepath.split('/') - print '/ ' - sofar = '/' - for p in parts: - if not p: continue - sofar += '/' + p - print '%s /' % \ - (config.myreponame, sofar, p) + if filepath == '/': + print '
/
' % \ + (config.myreponame) + else: + print '
' - print '
' + # and the linked, with links + parts = filepath.split('/') + print '/ ' + sofar = '/' + for p in parts: + if not p: continue + sofar += '/' + p + print '%s /' % \ + (config.myreponame, sofar, p) + + print '
' print_blob(fname) print_footer()