Fixed width and index
authorGianluca Montecchi <gian@grys.it>
Mon, 3 Aug 2009 19:29:21 +0000 (21:29 +0200)
committerGianluca Montecchi <gian@grys.it>
Mon, 3 Aug 2009 19:29:21 +0000 (21:29 +0200)
becommands/html.py

index eed7e566475a9ef98794ad2478ac119f3ef391ec..1ecf3ab29010f37e26b76ad7f81cc0e32e21e96a 100644 (file)
@@ -95,7 +95,7 @@ class BEHTMLGen():
         body {
         font-family: "lucida grande", "sans serif";
         color: #333;
-        width: 60em;
+        width: auto;
         margin: auto;
         }
         
@@ -229,7 +229,7 @@ class BEHTMLGen():
         margin-right: -20px;  
         }
         
-        h2 {
+        wid {
         text-transform: uppercase;
         font-size: smaller;
         margin-top: 1em;
@@ -395,6 +395,7 @@ class BEHTMLGen():
         
         <div class="main">
         <h1>BugsEverywhere Bug List</h1>
+        <h5><a href="%s">Back to Index</a></h5>
         <h2>Bug: _bug_id_</h2>
         <table >
         <tbody>
@@ -414,7 +415,7 @@ class BEHTMLGen():
         
         </div>
         
-        <div class="footer">Generated by <a href="http://www.bugseverywhere.org/">BugsEverywhere</a>.</div>
+        <div class="footer">Generated by <a href="http://www.bugseverywhere.org/">BugsEverywhere</a> on %s</div>
         
         </body>
         </html>
@@ -440,7 +441,7 @@ class BEHTMLGen():
         </tbody>
         </table>
         </div>
-        <h2><a href="%s">Back to Index</a></h2>
+        <h5><a href="%s">Back to Index</a></h5>
         <div class="footer">Generated by <a href="http://www.bugseverywhere.org/">BugsEverywhere</a>.</div>
         </body>
         </html>
@@ -489,7 +490,8 @@ class BEHTMLGen():
             FO.write(line)
             c += 1
             self.CreateDetailFile(bugs[l], out_dir_path, fileid)
-        FO.write(self.index_last)
+        when = time.ctime()
+        FO.write(self.index_last%when)
 
 
     def CreateDetailFile(self, bug, out_dir_path, fileid):
@@ -501,7 +503,12 @@ class BEHTMLGen():
             raise  cmdutil.UsageError, "Cannot create the detail html file."
 
         detail_first_ = re.sub('_bug_id_', bug.uuid[0:3], self.detail_first)
-        FD.write(detail_first_)
+        if fileid == "active":
+            FD.write(detail_first_%"../index.html")
+        if fileid == "inactive":
+            FD.write(detail_first_%"../index_inactive.html")
+            
+        
          
         bug_ = self.bd.bug_from_shortname(bug.uuid)
         bug_.load_comments(load_full=True)