summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-12-24 10:40:31 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-12-24 13:26:55 +0900
commita72a3068762b295a464ab1ac6e612b83d768c08b (patch)
tree3612880803f20453bc9206ebc71109e79c66d415 /scripts
parent242b4e498ac83351a711e64b571d957ace106563 (diff)
chatlog: using big table
To be more readable, chatlog is now using big table for each year Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/chatlog.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/scripts/chatlog.py b/scripts/chatlog.py
index 9a97880..4e228ab 100755
--- a/scripts/chatlog.py
+++ b/scripts/chatlog.py
@@ -23,10 +23,12 @@ class log(base.base):
#--------------------
def show(self):
print("h1. Chat Log\n")
+ print("<table>")
current=""
year=""
dir = "wiki/Chat_log"
+ tr = 0
files = glob.glob("{}/{}/*-chatlog".format(self.top(), dir))
files.sort(reverse=True)
@@ -37,9 +39,18 @@ class log(base.base):
y = date[0:4]
if (year != y):
+ if (year != ""):
+ print("\n</td>", end="")
+
+ if (tr % 6 == 0):
+ if (year != ""):
+ print("</tr>")
+ print("<tr>")
+ print("<td valign=\"top\">\n")
year = y
- print("\nh2. {}\n".format(year))
- print("|_. year|_. core|_. io|_. mm|")
+ tr += 1
+ print("h2. {}\n".format(year))
+ print("|_. date|_. core|_. io|_. mm|")
if (date != current):
current = date
@@ -51,6 +62,8 @@ class log(base.base):
else ""), end="")
print("|")
+ print("\n</td></tr></table>")
+
#====================================
#
# As command