commit c5451e1c49be519bab7582e3852319c4aca043a5
parent 1fbf6912cb99a747b286ce0417c1c9cda1dcb203
Author: lash <dev@holbrook.no>
Date: Sun, 1 Jan 2023 14:06:47 +0000
Add depends to html output
Diffstat:
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/piknik/issue.py b/piknik/issue.py
@@ -65,6 +65,10 @@ class Issue:
return list(zip(self.assigned, self.assigned_time))
+ def get_dependencies(self):
+ return self.dependencies
+
+
def unassign(self, identity):
for i, v in enumerate(self.assigned):
if v == identity:
diff --git a/piknik/render/html.py b/piknik/render/html.py
@@ -131,6 +131,18 @@ class Renderer(BaseRenderer):
r.add(s)
+ deps = issue.get_dependencies()
+ s.add(dt('depends on'))
+ if len(deps) == 0:
+ s.add(dd('no dependencies'))
+ else:
+ r_r = ul()
+ for v in deps:
+ r_r.add(dd(v))
+ s.add(dd(r_r))
+
+ r.add(s)
+
self.add(r)
super(Renderer, self).apply_issue(state, issue, tags, accumulator=accumulator)