commit 397586f6b8b5960e52e85745521d2d53ee728f2d
parent 8cdf29f6e2793c29c9c1483814d3bf5554b3dbda
Author: lash <dev@holbrook.no>
Date: Mon, 5 Dec 2022 09:11:12 +0000
Move message list to issue detail enclosure
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/piknik/render/html.py b/piknik/render/html.py
@@ -22,7 +22,7 @@ class Accumulator:
self.category_content = None
self.issue = None
self.msg = None
- self.envelope_content = None
+ #self.envelope_content = None
self.envelope = None
self.w = w
self.issues = []
@@ -34,9 +34,10 @@ class Accumulator:
if len(v) == 0:
if self.envelope != None:
self.msg.add(self.envelope)
- self.doc.add(self.category)
if self.msg != None:
- self.doc.add(self.msg)
+ self.category.add(self.msg)
+ #self.doc.add(self.msg)
+ self.doc.add(self.category)
w.write(self.doc.render())
return
@@ -55,12 +56,13 @@ class Accumulator:
self.issues.append(v_id[2:])
elif v_id[:4] == 'd_i_':
self.category = v
+ self.issue = v
self.msg = ol(_id='message_list')
self.issues.append(v_id[2:])
elif v_id[:2] == 'm_':
if self.envelope != None:
self.msg.add(self.envelope)
- self.envelope_content = v
+ #self.envelope_content = v
self.envelope = li()
elif v_id[:4] == 'd_m_':
self.envelope.add(v)