Fix relative links from bug pages in `be html`.
authorW. Trevor King <wking@drexel.edu>
Mon, 22 Feb 2010 22:22:34 +0000 (17:22 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 22 Feb 2010 22:22:34 +0000 (17:22 -0500)
Introduced by bugs/XXX.html -> bugs/XXX/index.html in
  wking@drexel.edu-20100220181238-j5ecst02y0k9ioo9

libbe/command/html.py

index d26faf8044042eea0235867856ae128b5ac51e1c..c9f89f3753c6698356bb399c437d118e77132a44 100644 (file)
@@ -168,9 +168,9 @@ class HTMLGen (object):
         self._write_css_file()
         for b in bugs:
             if b.active:
-                up_link = '../index.html'
+                up_link = '../../index.html'
             else:
-                up_link = '../index_inactive.html'
+                up_link = '../../index_inactive.html'
             self._write_bug_file(b, up_link)
         self._write_index_file(
             bugs_active, title=self.title,
@@ -642,7 +642,7 @@ class HTMLGen (object):
             <head>
             <title>%(title)s</title>
             <meta http-equiv="Content-Type" content="text/html; charset=%(charset)s" />
-            <link rel="stylesheet" href="../style.css" type="text/css" />
+            <link rel="stylesheet" href="../../style.css" type="text/css" />
             </head>
             <body>