From 24467aab58388d28e1029f2a5fce3dd10658ad72 Mon Sep 17 00:00:00 2001 From: shwewinaung Date: Wed, 25 Feb 2026 22:29:20 +0530 Subject: [PATCH] Hide closed patches section for draft commitfests --- pgcommitfest/commitfest/templates/commitfest.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pgcommitfest/commitfest/templates/commitfest.html b/pgcommitfest/commitfest/templates/commitfest.html index 886712fc..a343af91 100644 --- a/pgcommitfest/commitfest/templates/commitfest.html +++ b/pgcommitfest/commitfest/templates/commitfest.html @@ -22,13 +22,16 @@ Status summary: {%for id,title,num in statussummary%}{{title}}: {{num}}. {%endfor%}

- {%for p in patches %} +{%for p in patches %} {%ifchanged p.is_open%} + {% if not cf.draft or p.is_open %} {%if not forloop.first%} {%endif%} -

{{p.is_open|yesno:"Active patches,Closed patches"}}

+{% if not cf.draft or p.is_open %} +

{{p.is_open|yesno:"Active patches,Closed patches"}}

+{% endif %}