From 251b79bf79514c7a0c8826dee6c144684ae9c313 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 26 Feb 2019 11:19:41 +0900 Subject: html: tidyup table header use "th" header Signed-off-by: Kuninori Morimoto --- scripts/html.py | 18 ++++++++++++------ 1 file 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")) #-------------------- -- cgit v1.2.3