summaryrefslogtreecommitdiff
path: root/scripts/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/html.py')
-rwxr-xr-xscripts/html.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/scripts/html.py b/scripts/html.py
index 96c6108..724b1d8 100755
--- a/scripts/html.py
+++ b/scripts/html.py
@@ -163,7 +163,11 @@ class periject_html(base.base):
# -------
html("h2").print(title)
with html("table", {"border":"1"}):
- # | file-name | status | assignee | title |
+ with html("tr"):
+ html("th").print("file")
+ html("th").print("status")
+ html("th").print("assignee")
+ html("th").print("title")
for file in files:
v = view.viewer([file])
v.set_data(file)
@@ -272,15 +276,17 @@ class periject_html(base.base):
with html("table", {"border":"1"}):
with html("tr"):
- html("td").print("status")
+ html("th").print("file")
+ html("th").print("status")
+ html("th").print("assignee")
+ html("th").print("key")
+
+ with html("tr"):
+ html("td").print(os.path.relpath(v.file, self.top()))
html("td").print(html("a", {"target":"summary",
"href":os.path.relpath("{}/html/{}.html".format(self.top(), status), dir)}).text(status))
- with html("tr"):
- html("td").print("assignee")
html("td").print(html("a", {"target":"summary",
"href":os.path.relpath("{}/html/{}.html".format(self.top(), assignee), dir)}).text(assignee))
- with html("tr"):
- html("td").print("key")
html("td").print(v.get_data("key"))
#--------------------