Arne Babenhauserheide avatar Arne Babenhauserheide committed 08ca343

src highlighting works in lower levels in the tree, too.

Comments (0)

Files changed (2)

 push all bookmarks too                                       | owner:Arne Babenhauserheide <bab@draketo.de>, open:False, id:0661fcb89dfedcd564bdb2d4865d41b58494ac2e, time:1320547191.52
-add sourcecode coloring to the src files.                    | owner:Arne Babenhauserheide <bab@draketo.de>, open:True, id:09715a67cfabe2de0901f0472610c2285626e0e7, time:1319147685.11
+add sourcecode coloring to the src files.                    | owner:Arne Babenhauserheide <bab@draketo.de>, open:False, id:09715a67cfabe2de0901f0472610c2285626e0e7, time:1319147685.11
 offer different and customizeable ways to parse a site, including to just call an external applications. | owner:Arne Babenhauserheide <bab@draketo.de>, open:True, id:0ed55f757a6352bc3b2674153a3dc8eda91db843, time:1332932026.35
 Add a list of branches, heads and tags to the summary page.  | owner:Arne Babenhauserheide <bab@draketo.de>, open:False, id:0fde104c4206be8245ff0716ee2e91ea3971db8f, time:1319147651.17
 if b is used: a bugtracker: issue/<id>/<name>                | owner:Arne Babenhauserheide <bab@draketo.de>, open:False, id:1d631d51ff06b3bdca50e21da3d6a00bcb801c85, time:1319147632.52
                     f.write(filectx.data())
             # then write it as html
             _filenameescaped = escapename(filectx.path())
+            numberofslashes = len([i for i in _filenameescaped if i == "/"])
             filepath = srcpath(target,ctx,_filenameescaped)
             if not force and os.path.isfile(filepath):
                 continue
                 os.makedirs(os.path.dirname(filepath))
             except OSError: pass # exists
             with open(filepath, "w") as f:
-                f.write(templates["srchead"].replace("{filetitle}", name+": " + filename))
+                f.write(templates["srchead"].replace("{filetitle}", name+": " + filename).replace("href=\"../../", "href=\"../../" + "../"*numberofslashes))
                 f.write(parsesrcdata(filectx.data()))
                 f.write(templates["foot"].replace("{reponame}", name))
     # then write manifests for all commits
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.