summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xscripts/html.py7
-rwxr-xr-xscripts/view.py4
3 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0e1c823..165d3c9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ FIND = ./scripts/find.py
ALLYAML = $(shell ${FIND} -all)
FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d))
TEAM = Core IO MM
-MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram
+MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram NoAssignee
STATUS = New Active Blocked Paused Done Abandoned
NOPARAM = menu subindex body index
diff --git a/scripts/html.py b/scripts/html.py
index 446c200..d9b181d 100755
--- a/scripts/html.py
+++ b/scripts/html.py
@@ -189,6 +189,8 @@ class periject_html(base.base):
html("td").print(summary.text(team))
assignee = v.get_data("assignee")
+ if (not len(assignee)):
+ assignee = "NoAssignee"
summary.option({"href":self.relpath("html/{}.html".format(assignee), dir)})
html("td").print(summary.text(assignee))
@@ -278,7 +280,7 @@ class periject_html(base.base):
# from project.schema.yaml
with html("ul"):
for assignee in ['BSP', 'Geert', 'Jacopo', 'Kaneko', 'Kieran', 'Laurent', 'Magnus', 'Marek',
- 'Morimoto', 'Niklas', 'Shimoda', 'Simon', 'Ulrich', 'Wolfram']:
+ 'Morimoto', 'Niklas', 'Shimoda', 'Simon', 'Ulrich', 'Wolfram', "NoAssignee"]:
html("li").print(html("a", {"target":"summary",
"href":"./{}.html".format(assignee)}).text(assignee))
@@ -347,6 +349,9 @@ class periject_html(base.base):
status = v.get_data("status")
team = v.get_data("team")
+ if (not len(assignee)):
+ assignee = "NoAssignee"
+
with html("table", {"border":"1"}):
with html("tr"):
html("th").print("file")
diff --git a/scripts/view.py b/scripts/view.py
index baad0f3..48c6f71 100755
--- a/scripts/view.py
+++ b/scripts/view.py
@@ -149,7 +149,9 @@ class viewer(base.base):
self.text += "Title: {}\n".format(self.get_data("title"))
# show assignee
- self.text += "Assignee: {}\n".format(self.get_data("assignee"))
+ assignee = self.get_data("assignee")
+ if (len(assignee)):
+ self.text += "Assignee: {}\n".format(assignee)
if (self.with_file):
self.text += "File: {}\n".format(