aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--becommands/html.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/becommands/html.py b/becommands/html.py
index eed7e56..1ecf3ab 100644
--- a/becommands/html.py
+++ b/becommands/html.py
@@ -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)