piknik

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

commit 462297d9159e12292af4576575b59df652565b0a
parent 9f2286c45aed7065deecf8cf10dc6e4be906ad85
Author: lash <dev@holbrook.no>
Date:   Sat,  3 Dec 2022 17:40:48 +0000

Improve issue render of tags, assign

Diffstat:
Mpiknik/render/html.py | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/piknik/render/html.py b/piknik/render/html.py @@ -95,18 +95,21 @@ class Renderer(BaseRenderer): s.add(dd(state)) s.add(dt('tags')) + r_d = dd() r_r = ul() - for v in tags: + for i, v in enumerate(tags): if v == '(UNTAGGED)': + r_d.add(dd(v)) continue - r_r.add(li(v)) - - assigned = issue.get_assigned() - s.add(dd(r_r)) + else: + r_r.add(li(v)) + r_d.add(r_r) + s.add(r_d) + assigned = issue.get_assigned() s.add(dt('assigned to')) if len(assigned) == 0: - s.add(dd('not assigned')) + s.add(dd('(not assigned)')) else: owner = issue.owner() r_r = ul()