summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-02-26 11:19:41 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-04-09 14:59:46 +0900
commit251b79bf79514c7a0c8826dee6c144684ae9c313 (patch)
tree2d93355f2b022fcfe10888ac0cd93b3ab9020bd3
parent0ac23cddb502bdf9180e94623f42f20ae999a4c8 (diff)
html: tidyup table header
use "th" header Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
-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"))
#--------------------